@@ -20,11 +20,12 @@ srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2020
2121cd " $srcdir /.."
2222
23+ # shellcheck disable=SC1090
2324. " $srcdir /utils.sh"
2425
2526section " 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
2930APACHE_DRILL_HOST=" ${DOCKER_HOST:- ${APACHE_DRILL_HOST:- ${HOST:- localhost} } } "
3031APACHE_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