From e649c123162dd9eca0852cd682364d08182e3e2d Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 17 May 2021 12:19:26 +0100 Subject: [PATCH] CI: Use larger timeout multiplier for ASan tests Running under ASan introduces a good amount of overhead. Using the Meson test wrapper rather than invoking a Ninja target lets us set a timeout multiplier, which we smash up pretty high to account for this overhead and prevent some of the larger tests from hitting timeout. Signed-off-by: Daniel Stone --- .gitlab-ci/virtme-scripts/run-weston-tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/virtme-scripts/run-weston-tests.sh b/.gitlab-ci/virtme-scripts/run-weston-tests.sh index af1e1c5f..40e80e90 100755 --- a/.gitlab-ci/virtme-scripts/run-weston-tests.sh +++ b/.gitlab-ci/virtme-scripts/run-weston-tests.sh @@ -15,13 +15,15 @@ export LIBSEAT_BACKEND=seatd # virtme starts with HOME=/tmp/roothome, but as we installed meson on user root, # meson can not find its modules. So we change the HOME env var to fix that. export HOME=/root +export PATH=$HOME/.local/bin:$PATH # start seatd and wait for its socket to be available before running the test /usr/local/bin/seatd & while ! [ -e /run/seatd.sock ]; do sleep 0.1; done # run the tests and save the exit status -ASAN_OPTIONS=detect_leaks=0,atexit=1 ninja test +# we give ourselves a very generous timeout multiplier due to ASan overhead +ASAN_OPTIONS=detect_leaks=0,atexit=1 meson test --timeout-multiplier 4 TEST_RES=$? # create a file to keep the result of this script: