]> 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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 11 Mar 2025 19:33:46 +0000 (04:33 +0900)
Note, the default timeout for systemctl daemon-reload is 270 seconds.
Hence, 300 seconds should be enough.

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

index d11157f8237179aafcf9c66106527a08c4cb26d4..f6f422a30572a3b9a2d1e4e69fc992f53c98fb60 100755 (executable)
@@ -284,4 +284,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'