]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: extend timeout and enable generating debugging logs
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 6 Jun 2025 15:09:37 +0000 (00:09 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 25 Jun 2025 12:36:10 +0000 (13:36 +0100)
Not sure why the test failed, but maybe the test environment is too
slow? Even this does not fix the failure, by enabling debugging logs,
this hopefully provides more useful information for debugging.

For issue #37685.

(cherry picked from commit b5bd717fcdf5127495e178cf3fe8cbd8b86d390c)

test/units/TEST-74-AUX-UTILS.busctl.sh

index 26a43317d42699e931928fdcfe516fbfd0149e12..459b7040f8711948a4f28c8edde9a809d498ddd3 100755 (executable)
@@ -58,8 +58,9 @@ busctl emit --auto-start=no --destination=systemd-logind.service \
             PrepareForShutdown b false
 
 systemd-run --quiet --service-type=notify --unit=test-busctl-wait --pty \
-       -p ExecStartPost="busctl emit /test org.freedesktop.fake1 TestSignal s success" \
-       busctl --timeout=3 wait /test org.freedesktop.fake1 TestSignal | grep -qF 's "success"'
+            -p Environment=SYSTEMD_LOG_LEVEL=debug \
+            -p ExecStartPost="busctl emit /test org.freedesktop.fake1 TestSignal s success" \
+            busctl --timeout=30 wait /test org.freedesktop.fake1 TestSignal | grep -qF 's "success"'
 
 busctl get-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager \
                     Version