ac3a84
From b6f459c221004de9753569e2ec5ee5f887fc8b51 Mon Sep 17 00:00:00 2001
ac3a84
From: Yu Watanabe <watanabe.yu+github@gmail.com>
ac3a84
Date: Thu, 15 Dec 2022 15:28:56 +0900
ac3a84
Subject: [PATCH] test: suppress echo in monitor_check_rr()
ac3a84
ac3a84
(cherry picked from commit ef09861a0b0aa7c6a948f4e008e2fea312bc68d6)
ac3a84
ac3a84
Related: #2138081
ac3a84
---
ac3a84
 test/units/testsuite-75.sh | 8 ++++----
ac3a84
 1 file changed, 4 insertions(+), 4 deletions(-)
ac3a84
ac3a84
diff --git a/test/units/testsuite-75.sh b/test/units/testsuite-75.sh
ac3a84
index d2062c7b05..d0c7133412 100755
ac3a84
--- a/test/units/testsuite-75.sh
ac3a84
+++ b/test/units/testsuite-75.sh
ac3a84
@@ -16,17 +16,17 @@ run() {
ac3a84
     "$@" |& tee "$RUN_OUT"
ac3a84
 }
ac3a84
 
ac3a84
-monitor_check_rr() {
ac3a84
+monitor_check_rr() (
ac3a84
+    set +x
ac3a84
+    set +o pipefail
ac3a84
     local match="${1:?}"
ac3a84
 
ac3a84
     # Wait until the first mention of the specified log message is
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
-    set +o pipefail
ac3a84
     journalctl -u resmontest.service -f --full | grep -m1 "$match"
ac3a84
-    set -o pipefail
ac3a84
-}
ac3a84
+)
ac3a84
 
ac3a84
 # Test for resolvectl, resolvconf
ac3a84
 systemctl unmask systemd-resolved.service