We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ad2f5 commit 3b52b33Copy full SHA for 3b52b33
runtests.sh
@@ -22,6 +22,13 @@ DRIVER_HOME=$(dirname $0)
22
FORCE_DOWNLOAD=0
23
RUNNING=0
24
25
+if [ -z "${TEAMCITY_VERSION}" ]
26
+then
27
+ UNITTEST="unittest"
28
+else
29
+ UNITTEST="teamcity.unittestpy"
30
+fi
31
+
32
if [ -z "${TEST}" ]
33
then
34
TEST="test"
@@ -53,7 +60,7 @@ done
53
60
echo "Running tests with $(python --version)"
54
61
pip install --upgrade -r ${DRIVER_HOME}/test_requirements.txt
55
62
echo ""
56
-TEST_RUNNER="coverage run -m teamcity.unittestpy discover -vfs ${TEST}"
63
+TEST_RUNNER="coverage run -m ${UNITTEST} discover -vfs ${TEST}"
57
64
if [ ${RUNNING} -eq 1 ]
58
65
59
66
${TEST_RUNNER}
0 commit comments