fix(test): avoid output_strictly_contains failures

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce
2021-09-08 08:25:41 +00:00
committed by poiana
parent a684bec007
commit 4d55847bd4

View File

@@ -409,10 +409,12 @@ class FalcoTest(Test):
else:
actual = open(output['actual']).read()
if expected not in actual:
self.fail("Output '{}' does not strictly contains the expected content '{}'".format(
output['actual'], output['expected']))
return False
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(
output['actual'], output['expected']))
return False
return True