diff --git a/test/falco_test.py b/test/falco_test.py index a98958ef..77f750d5 100644 --- a/test/falco_test.py +++ b/test/falco_test.py @@ -409,12 +409,15 @@ class FalcoTest(Test): else: actual = open(output['actual']).read() + actual_cursor = actual expected_lines = expected.splitlines() for line in expected_lines: - if line not in actual: + pos = actual_cursor.find(line) + if pos < 0: self.fail("Output '{}' does not strictly contains the expected content '{}'".format( output['actual'], output['expected'])) return False + actual_cursor = actual_cursor[pos + len(line):] return True