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