From: Frantisek Sumsal Date: Fri, 27 Jan 2023 13:29:42 +0000 (+0100) Subject: test: don't hang indefinitely on no match X-Git-Tag: v253-rc2~39^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=270e9dcdb8c7f0f3c8b56803d0ef7bbf867b9fd1;p=thirdparty%2Fsystemd.git test: don't hang indefinitely on no match --- diff --git a/test/units/testsuite-75.sh b/test/units/testsuite-75.sh index d36cab2923e..ddd86d09bb2 100755 --- a/test/units/testsuite-75.sh +++ b/test/units/testsuite-75.sh @@ -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