Skip to content

Commit 05b3bf1

Browse files
committed
Force download option
1 parent 3b52b33 commit 05b3bf1

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

runtests.sh

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,26 @@
1919

2020
DRIVER_HOME=$(dirname $0)
2121

22-
FORCE_DOWNLOAD=0
22+
NEORUN_OPTIONS=""
2323
RUNNING=0
2424

25+
# Parse options
26+
while getopts ":dr" OPTION
27+
do
28+
case ${OPTION} in
29+
d)
30+
NEORUN_OPTIONS="-f"
31+
;;
32+
r)
33+
RUNNING=1
34+
;;
35+
\?)
36+
echo "Invalid option: -${OPTARG}" >&2
37+
;;
38+
esac
39+
done
40+
shift $(($OPTIND - 1))
41+
2542
if [ -z "${TEAMCITY_VERSION}" ]
2643
then
2744
UNITTEST="unittest"
@@ -40,22 +57,6 @@ then
4057
VERSIONS="nightly"
4158
fi
4259

43-
# Parse options
44-
while getopts ":dr" OPTION
45-
do
46-
case ${OPTION} in
47-
d)
48-
FORCE_DOWNLOAD=1
49-
;;
50-
r)
51-
RUNNING=1
52-
;;
53-
\?)
54-
echo "Invalid option: -${OPTARG}" >&2
55-
;;
56-
esac
57-
done
58-
5960
# Run tests
6061
echo "Running tests with $(python --version)"
6162
pip install --upgrade -r ${DRIVER_HOME}/test_requirements.txt
@@ -66,7 +67,7 @@ then
6667
${TEST_RUNNER}
6768
EXIT_STATUS=$?
6869
else
69-
neokit/neorun "${TEST_RUNNER}" ${VERSIONS}
70+
neokit/neorun ${NEORUN_OPTIONS} "${TEST_RUNNER}" ${VERSIONS}
7071
EXIT_STATUS=$?
7172
if [ ${EXIT_STATUS} -eq 0 ]
7273
then

0 commit comments

Comments
 (0)