mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-05 16:50:34 +00:00
fix(test): avoid output_strictly_contains failures
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
@@ -409,7 +409,9 @@ class FalcoTest(Test):
|
|||||||
else:
|
else:
|
||||||
actual = open(output['actual']).read()
|
actual = open(output['actual']).read()
|
||||||
|
|
||||||
if expected not in actual:
|
expected_lines = expected.splitlines()
|
||||||
|
for line in expected_lines:
|
||||||
|
if line not in actual:
|
||||||
self.fail("Output '{}' does not strictly contains the expected content '{}'".format(
|
self.fail("Output '{}' does not strictly contains the expected content '{}'".format(
|
||||||
output['actual'], output['expected']))
|
output['actual'], output['expected']))
|
||||||
return False
|
return False
|
||||||
|
Reference in New Issue
Block a user