diff --git a/utils/travis/play_test_executor.sh b/utils/travis/play_test_executor.sh index b7593056a058..fd58abee1531 100755 --- a/utils/travis/play_test_executor.sh +++ b/utils/travis/play_test_executor.sh @@ -1,5 +1,5 @@ #!/bin/bash -gdb -q -batch -return-child-result -ex "run" -ex "thread apply all bt" -ex "quit" --args ./wesnoth -m --controller 1:ai --controller 2:ai --nogui 2> error.log +gdb -q -batch -return-child-result -ex "set disable-randomization off" -ex "run" -ex "thread apply all bt" -ex "quit" --args ./wesnoth -m --controller 1:ai --controller 2:ai --nogui 2> error.log error_code="$?" while grep -q 'Could not initialize SDL_video' error.log; do echo "Could not initialize SDL_video error, retrying..." diff --git a/utils/travis/steps/script.sh b/utils/travis/steps/script.sh index 01abb7bdc54a..e63f223c8ae5 100755 --- a/utils/travis/steps/script.sh +++ b/utils/travis/steps/script.sh @@ -43,5 +43,6 @@ else docker run --volume "$HOME"/build-cache:/home/wesnoth-travis/build \ --volume "$HOME"/.ccache:/root/.ccache \ --tty wesnoth-repo:"$LTS"-"$BRANCH" \ + --cap-add=SYS_PTRACE \ unbuffer ./utils/travis/docker_run.sh "$NLS" "$TOOL" "$CC" "$CXX" "$CXXSTD" "$OPT" "$WML_TESTS" "$WML_TEST_TIME" "$PLAY_TEST" "$MP_TEST" "$BOOST_TEST" "$LTO" "$SAN" "$VALIDATE" fi diff --git a/utils/travis/test_executor.sh b/utils/travis/test_executor.sh index 72844f3d6e48..75aedd8ea347 100755 --- a/utils/travis/test_executor.sh +++ b/utils/travis/test_executor.sh @@ -1,5 +1,5 @@ #!/bin/bash -gdb -q -batch -return-child-result -ex "run" -ex "thread apply all bt" -ex "quit" --args ./boost_unit_tests 2> error.log +gdb -q -batch -return-child-result -ex "set disable-randomization off" -ex "run" -ex "thread apply all bt" -ex "quit" --args ./boost_unit_tests 2> error.log error_code="$?" while grep -q 'Could not initialize SDL_video' error.log; do echo "Could not initialize SDL_video error, retrying..."