]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: set NSPAWN_TIMEOUT and QEMU_TIMEOUT explicitly
authorEvgeny Vereshchagin <evvers@ya.ru>
Tue, 14 May 2019 11:04:42 +0000 (13:04 +0200)
committerEvgeny Vereshchagin <evvers@ya.ru>
Tue, 14 May 2019 11:04:42 +0000 (13:04 +0200)
These were never set explictily because we relied on Travis CI
canceling a job if it's been stuck for 10 minutes. Now that
the script is run on Azure Pipelines (where the default timeout
is 60 minutes) we should limit the script manually to avoid waiting
for an hour for broken jobs to finish.

travis-ci/managers/xenial.sh

index e1c5d77cbf57746ca927d243343cf64e6ba8850b..e2e32738221d73c816e4cc25b508034c40a2510a 100755 (executable)
@@ -15,9 +15,10 @@ sed -i 's/2\.30/2.27/' meson.build
 
 meson --werror -Db_sanitize=address,undefined -Dsplit-usr=true build
 ninja -v -C build
-make -C test/TEST-01-BASIC clean setup run TEST_NO_QEMU=yes NSPAWN_ARGUMENTS=--keep-unit RUN_IN_UNPRIVILEGED_CONTAINER=no
+
+make -C test/TEST-01-BASIC clean setup run NSPAWN_TIMEOUT=600 TEST_NO_QEMU=yes NSPAWN_ARGUMENTS=--keep-unit RUN_IN_UNPRIVILEGED_CONTAINER=no
 
 # Now that we're more or less sure that ASan isn't going to crash systemd and cause a kernel panic
 # let's also run the test with QEMU to cover udevd, sysctl and everything else that isn't run
 # in containers.
-make -C test/TEST-01-BASIC clean setup run TEST_NO_NSPAWN=yes
+make -C test/TEST-01-BASIC clean setup run QEMU_TIMEOUT=900 TEST_NO_NSPAWN=yes