Skip to content

Commit 3b52b33

Browse files
committed
Adapt test output to environment
1 parent d8ad2f5 commit 3b52b33

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

runtests.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ DRIVER_HOME=$(dirname $0)
2222
FORCE_DOWNLOAD=0
2323
RUNNING=0
2424

25+
if [ -z "${TEAMCITY_VERSION}" ]
26+
then
27+
UNITTEST="unittest"
28+
else
29+
UNITTEST="teamcity.unittestpy"
30+
fi
31+
2532
if [ -z "${TEST}" ]
2633
then
2734
TEST="test"
@@ -53,7 +60,7 @@ done
5360
echo "Running tests with $(python --version)"
5461
pip install --upgrade -r ${DRIVER_HOME}/test_requirements.txt
5562
echo ""
56-
TEST_RUNNER="coverage run -m teamcity.unittestpy discover -vfs ${TEST}"
63+
TEST_RUNNER="coverage run -m ${UNITTEST} discover -vfs ${TEST}"
5764
if [ ${RUNNING} -eq 1 ]
5865
then
5966
${TEST_RUNNER}

0 commit comments

Comments
 (0)