Skip to content

Commit 0ec7eff

Browse files
committed
correct the test script
1 parent 36defe1 commit 0ec7eff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/script/test.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22
set -euo pipefail
33
IFS=$'\n\t'
44

5+
influxdb_version=1.7.6
6+
57
# first parameter to the test script (directory with the test binaries) is mandatory
68
echo "running tests from $1"
79
pkill influxd || true
8-
./influxdb-1.7.6-1/usr/bin/influxd &
10+
./influxdb-${influxdb_version}-1/usr/bin/influxd &
911
sleep 3
1012
$1/test-influxdb-cpp-rest -d yes
1113
export LD_LIBRARY_PATH=$1
1214
$1/test-influxdb-c-rest -d yes
1315
pkill influxd
1416
sleep 3
15-
./influxdb-1.2.4-1/usr/bin/influxd -config src/auth_test/influxdb.conf &
17+
./influxdb-${influxdb_version}-1/usr/bin/influxd -config src/auth_test/influxdb.conf &
1618
sleep 3
1719
$1/test-influxdb-cpp-auth -d yes
1820
pkill influxd

0 commit comments

Comments
 (0)