Skip to content

Commit b0783e6

Browse files
committedMar 7, 2019
more fixes
1 parent 7f4b290 commit b0783e6

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed
 

‎.ci/travis/linux/script.sh‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,22 @@ docker commit qgis_container qgis_image
2222
# running QGIS tests
2323
docker-compose -f ${TRAVIS_BUILD_DIR}/.docker/docker-compose.travis.yml run qgis-deps /root/QGIS/.ci/travis/linux/scripts/docker-qgis-test.sh
2424

25-
docker run -it
26-
- ${TRAVIS_BUILD_DIR}/.docker/qgis_resources/test_runner:/root/qgis_test_runner
27-
2825
# running tests for the python test runner
2926
docker run -d --name qgis-testing-environment -v ${TRAVIS_BUILD_DIR}/tests/src/python:/tests_directory -e DISPLAY=:99 qgis_image "/usr/bin/supervisord -c /etc/supervisor/supervisord.conf"
3027
sleep 10 # Wait for xvfb to finish starting
3128

32-
# Run tests in the docker
29+
30+
declare -A testrunners
3331
# Passing cases:
34-
TEST_SCRIPT_PATH=${TRAVIS_BUILD_DIR}/.ci/travis/linux/docker_test.sh
35-
[[ $(${TEST_SCRIPT_PATH} test_testrunner.run_passing) -eq '0' ]]
36-
[[ $(${TEST_SCRIPT_PATH} test_testrunner.run_skipped_and_passing) -eq '0' ]]
32+
testrunners["test_testrunner.run_passing"]=0
33+
testrunners["test_testrunner.run_skipped_and_passing"]=0
3734
# Failing cases:
38-
[[ $(${TEST_SCRIPT_PATH} test_testrunner) -eq '1' ]]
39-
[[ $(${TEST_SCRIPT_PATH} test_testrunner.run_all) -eq '1' ]]
40-
[[ $(${TEST_SCRIPT_PATH} test_testrunner.run_failing) -eq '1' ]]
35+
testrunners["test_testrunner"]=1
36+
testrunners["test_testrunner.run_all"]=1
37+
testrunners["test_testrunner.run_failing"]=1
38+
# Run tests in the docker
39+
for i in "${!testrunners[@]}"
40+
do
41+
echo "test ${i}..."
42+
$(docker exec -it qgis-testing-environment sh -c "cd /tests_directory && qgis_testrunner.sh ${i}" &>/dev/null) -eq "${testrunners[$i]}" ]] && echo "success" || exit 1
43+
done

0 commit comments

Comments
 (0)
Please sign in to comment.