]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: don't hang indefinitely on no match
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 27 Jan 2023 13:29:42 +0000 (14:29 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 27 Jan 2023 14:45:00 +0000 (15:45 +0100)
test/units/testsuite-75.sh

index d36cab2923ec05151e2e92142669dd0920010a95..ddd86d09bb247427c73f8ce3619d7a83be9dcf99 100755 (executable)
@@ -41,7 +41,7 @@ monitor_check_rr() (
     # displayed. We turn off pipefail for this, since we don't care about the
     # lhs of this pipe expression, we only care about the rhs' result to be
     # clean
-    journalctl -u resmontest.service --since "$since" -f --full | grep -m1 "$match"
+    timeout -v 30s journalctl -u resmontest.service --since "$since" -f --full | grep -m1 "$match"
 )
 
 # Test for resolvectl, resolvconf