]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: bump test-execute subtest timeout in CI
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 4 Jun 2026 23:10:56 +0000 (00:10 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 5 Jun 2026 08:47:02 +0000 (09:47 +0100)
The test is flaky and times out lately in ppc64el CI runners:

exec-dynamicuser-statedir.service: Control group is empty.
exec-dynamicuser-statedir.service: User lookup succeeded: uid=65325 gid=65325
Test timeout when testing exec-dynamicuser-statedir.service

Bump the timeout also when in a CI, as they are often over subscribed

src/test/test-execute.c

index be915e4b44b4705c5b06066ed8cf751b53195879..171bd495b54a99c101ecffe2b60f9b8c84b0c20e 100644 (file)
@@ -78,9 +78,9 @@ static void wait_for_service_finish(Manager *m, Unit *unit) {
 
         ASSERT_NOT_NULL(m);
 
-        /* Bump the timeout when running in plain QEMU, as some more involved tests might start hitting the
-         * default 2m timeout (like exec-dynamicuser-statedir.service) */
-        if (detect_virtualization() == VIRTUALIZATION_QEMU)
+        /* Bump the timeout when running in plain QEMU or in CI, as some more involved tests might start
+         * hitting the default 2m timeout (like exec-dynamicuser-statedir.service). */
+        if (detect_virtualization() == VIRTUALIZATION_QEMU || ci_environment())
                 timeout *= 2;
 
         printf("%s\n", unit->id);