From 642e7a65235eb29a49458ea938be4bcfcdbc9215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Fri, 22 May 2026 13:22:10 +0200 Subject: [PATCH] test: syslog: property_filter: Adapt to changes required by yangerd The test got an unexpected input in one of its logs: 'May 22 11:18:32 test-00-03-00 yangerd[3677]: SIGHUP: triggering immediate re-poll' limit the string grepping for to be more exact. --- test/case/syslog/property_filter/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/case/syslog/property_filter/test.py b/test/case/syslog/property_filter/test.py index 9ba0b0e8..9cb642f2 100755 --- a/test/case/syslog/property_filter/test.py +++ b/test/case/syslog/property_filter/test.py @@ -109,7 +109,7 @@ with infamy.Test() as test: test.fail(f"Expected 0 otherapp messages in /var/log/myapp, got {count}") with test.step("Verify not-error log excludes ERROR messages"): - rc = tgtssh.runsh("grep -c 'test' /var/log/not-error 2>/dev/null") + rc = tgtssh.runsh("grep -c 'target test' /var/log/not-error 2>/dev/null") count = int(rc.stdout.strip()) if rc.returncode == 0 else 0 if count != 3: test.fail(f"Expected 3 non-ERROR messages in /var/log/not-error, got {count}")