mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 21:33:02 +02:00
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:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user