Skip to content

Commit b8f6d77

Browse files
committed
updated test_apache-drill.sh
1 parent 006cc4e commit b8f6d77

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tests/test_apache-drill.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2020

2121
cd "$srcdir/.."
2222

23+
# shellcheck disable=SC1090
2324
. "$srcdir/utils.sh"
2425

2526
section "A p a c h e D r i l l"
2627

27-
export APACHE_DRILL_VERSIONS="${@:-${APACHE_DRILL_VERSIONS:-0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13 1.14 1.15 latest}}"
28+
export APACHE_DRILL_VERSIONS="${*:-${APACHE_DRILL_VERSIONS:-0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13 1.14 1.15 latest}}"
2829

2930
APACHE_DRILL_HOST="${DOCKER_HOST:-${APACHE_DRILL_HOST:-${HOST:-localhost}}}"
3031
APACHE_DRILL_HOST="${APACHE_DRILL_HOST##*/}"
@@ -45,6 +46,7 @@ test_apache_drill(){
4546
echo "getting Apache Drill dynamic port mappings:"
4647
docker_compose_port "Apache Drill"
4748
hr
49+
# shellcheck disable=SC2153
4850
when_ports_available "$APACHE_DRILL_HOST" "$APACHE_DRILL_PORT"
4951
hr
5052
when_url_content "http://$APACHE_DRILL_HOST:$APACHE_DRILL_PORT/status" "Running"
@@ -60,15 +62,19 @@ test_apache_drill(){
6062
hr
6163
APACHE_DRILL_PORT="$APACHE_DRILL_PORT_DEFAULT" ERRCODE=1 run_grep "^NO_AVAILABLE_SERVER$" ./find_active_apache_drill.py $non_drill_node1 $non_drill_node2
6264

65+
# shellcheck disable=SC2097,SC2098
6366
APACHE_DRILL_PORT="$APACHE_DRILL_PORT_DEFAULT" run_grep "^$APACHE_DRILL_HOST:$APACHE_DRILL_PORT$" ./find_active_apache_drill.py $non_drill_node1 "$APACHE_DRILL_HOST:$APACHE_DRILL_PORT"
6467

6568
# Drill 1.7+ only
66-
if [ "$version" = "latest" ] || [[ "$version" > 1.6 ]]; then
69+
if [ "$version" = "latest" ] || [ "$(bc <<< "$version > 1.6")" = 1 ]; then
6770
APACHE_DRILL_PORT="$APACHE_DRILL_PORT_DEFAULT" ERRCODE=1 run_grep "^NO_AVAILABLE_SERVER$" ./find_active_apache_drill2.py $non_drill_node1 $non_drill_node2
6871

72+
# shellcheck disable=SC2097,SC2098
6973
APACHE_DRILL_PORT="$APACHE_DRILL_PORT_DEFAULT" run_grep "^$APACHE_DRILL_HOST:$APACHE_DRILL_PORT$" ./find_active_apache_drill2.py $non_drill_node1 "$APACHE_DRILL_HOST:$APACHE_DRILL_PORT"
7074
fi
7175

76+
# run_count defined in util lib
77+
# shellcheck disable=SC2154
7278
echo "Completed $run_count Apache Drill tests"
7379
hr
7480
[ -n "${KEEPDOCKER:-}" ] ||

0 commit comments

Comments
 (0)