]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-74-AUX-UTILS: fail earlier when systemd-run fail to reconnect to bus
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 10 Mar 2025 19:27:18 +0000 (04:27 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 Aug 2025 15:24:45 +0000 (17:24 +0200)
Note, the default timeout for systemctl daemon-reload is 270 seconds.
Hence, 300 seconds should be enough.

(cherry picked from commit 07355061db88d95b81cfdc3510eb57a0940daac1)

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

index a0d2d97f3eebc514ae4312cd2fd481d26ac519b2..1e3a9902bbcbfe937378a877073503bd12d9bd99 100755 (executable)
@@ -280,4 +280,4 @@ if [[ -e /usr/lib/pam.d/systemd-run0 ]] || [[ -e /etc/pam.d/systemd-run0 ]]; the
 fi
 
 # Tests whether intermediate disconnects corrupt us (modified testcase from https://github.com/systemd/systemd/issues/27204)
-assert_rc "37" systemd-run --unit=disconnecttest --wait --pipe --user -M testuser@.host bash -ec 'systemctl --user daemon-reexec; sleep 3; exit 37'
+assert_rc "37" timeout 300 systemd-run --unit=disconnecttest --wait --pipe --user -M testuser@.host bash -ec 'systemctl --user daemon-reexec; sleep 3; exit 37'