ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
ac3a84
From 3da691ba7ed23db37930dff5452fe3c3dcd9a963 Mon Sep 17 00:00:00 2001
ac3a84
From: Frantisek Sumsal <frantisek@sumsal.cz>
ac3a84
Date: Fri, 27 Jan 2023 14:29:42 +0100
ac3a84
Subject: [PATCH] test: don't hang indefinitely on no match
ac3a84
ac3a84
(cherry picked from commit 270e9dcdb8c7f0f3c8b56803d0ef7bbf867b9fd1)
ac3a84
ac3a84
Related: #2138081
ac3a84
---
ac3a84
 test/units/testsuite-75.sh | 2 +-
ac3a84
 1 file changed, 1 insertion(+), 1 deletion(-)
ac3a84
ac3a84
diff --git a/test/units/testsuite-75.sh b/test/units/testsuite-75.sh
ac3a84
index d36cab2923..ddd86d09bb 100755
ac3a84
--- a/test/units/testsuite-75.sh
ac3a84
+++ b/test/units/testsuite-75.sh
ac3a84
@@ -41,7 +41,7 @@ monitor_check_rr() (
ac3a84
     # displayed. We turn off pipefail for this, since we don't care about the
ac3a84
     # lhs of this pipe expression, we only care about the rhs' result to be
ac3a84
     # clean
ac3a84
-    journalctl -u resmontest.service --since "$since" -f --full | grep -m1 "$match"
ac3a84
+    timeout -v 30s journalctl -u resmontest.service --since "$since" -f --full | grep -m1 "$match"
ac3a84
 )
ac3a84
 
ac3a84
 # Test for resolvectl, resolvconf