From: Yu Watanabe Date: Fri, 5 Jan 2024 09:53:56 +0000 (+0900) Subject: test: wait for verbose-success.service finished X-Git-Tag: v256-rc1~1266 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff4240fc229114908a24eae01d814f892dc2f8f1;p=thirdparty%2Fsystemd.git test: wait for verbose-success.service finished Otherwise, the command 'echo' may not be invoked yet. Follow-up for 25aa35d465cf4725bc3ebd2a919e7f39ecafb920. --- diff --git a/test/units/testsuite-04.journal.sh b/test/units/testsuite-04.journal.sh index 88fab48b9a2..2c0c50f5b83 100755 --- a/test/units/testsuite-04.journal.sh +++ b/test/units/testsuite-04.journal.sh @@ -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)" ]]