dcavalca / rpms / systemd

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