]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: wait for verbose-success.service finished
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 5 Jan 2024 09:53:56 +0000 (18:53 +0900)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 5 Jan 2024 12:08:10 +0000 (13:08 +0100)
Otherwise, the command 'echo' may not be invoked yet.

Follow-up for 25aa35d465cf4725bc3ebd2a919e7f39ecafb920.

test/units/testsuite-04.journal.sh

index 88fab48b9a26c97b2dcfc65d9bc0054baef6f125..2c0c50f5b83efbc7d33e1e8ad5506cb5804afb33 100755 (executable)
@@ -108,7 +108,8 @@ journalctl --sync
 [[ -z "$(journalctl -b -q -u silent-success.service)" ]]
 
 # Test syslog identifiers exclusion
-systemctl start verbose-success
+systemctl start verbose-success.service
+timeout 30 bash -xec 'while systemctl -q is-active verbose-success.service; do sleep 1; done'
 journalctl --sync
 [[ -n "$(journalctl -b -q -u verbose-success.service -t systemd)" ]]
 [[ -n "$(journalctl -b -q -u verbose-success.service -t echo)" ]]