File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,22 @@ docker commit qgis_container qgis_image
22
22
# running QGIS tests
23
23
docker-compose -f ${TRAVIS_BUILD_DIR} /.docker/docker-compose.travis.yml run qgis-deps /root/QGIS/.ci/travis/linux/scripts/docker-qgis-test.sh
24
24
25
- docker run -it
26
- - ${TRAVIS_BUILD_DIR} /.docker/qgis_resources/test_runner:/root/qgis_test_runner
27
-
28
25
# running tests for the python test runner
29
26
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"
30
27
sleep 10 # Wait for xvfb to finish starting
31
28
32
- # Run tests in the docker
29
+
30
+ declare -A testrunners
33
31
# 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
37
34
# 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
You can’t perform that action at this time.
0 commit comments