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.
This commit is contained in:
Mattias Walström
2026-06-24 15:53:02 +02:00
parent da4f5922c1
commit 434fb6df40
+1 -1
View File
@@ -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}")