ci: export ASAN_OPTIONS

This allows splitting the `meson test` command on multiple lines.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2021-09-13 11:11:39 +02:00
parent eb347687e7
commit 3e53a8d478
1 changed files with 3 additions and 1 deletions

View File

@ -21,9 +21,11 @@ export PATH=$HOME/.local/bin:$PATH
/usr/local/bin/seatd &
while ! [ -e /run/seatd.sock ]; do sleep 0.1; done
export ASAN_OPTIONS=detect_leaks=0,atexit=1
# run the tests and save the exit status
# we give ourselves a very generous timeout multiplier due to ASan overhead
ASAN_OPTIONS=detect_leaks=0,atexit=1 meson test --no-rebuild --timeout-multiplier 4
meson test --no-rebuild --timeout-multiplier 4
TEST_RES=$?
# create a file to keep the result of this script: