File tree Expand file tree Collapse file tree 1 file changed +19
-18
lines changed Expand file tree Collapse file tree 1 file changed +19
-18
lines changed Original file line number Diff line number Diff line change 1919
2020DRIVER_HOME=$( dirname $0 )
2121
22- FORCE_DOWNLOAD=0
22+ NEORUN_OPTIONS= " "
2323RUNNING=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+
2542if [ -z " ${TEAMCITY_VERSION} " ]
2643then
2744 UNITTEST=" unittest"
4057 VERSIONS=" nightly"
4158fi
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
6061echo " Running tests with $( python --version) "
6162pip install --upgrade -r ${DRIVER_HOME} /test_requirements.txt
6667 ${TEST_RUNNER}
6768 EXIT_STATUS=$?
6869else
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
You can’t perform that action at this time.
0 commit comments