trappy/tests: Fix test for checking invalid line
Due to the recent patches to skip invalid lines using a regex, this test case
fails. Fix it by appending the invalid line to the end of the test trace.
@@ -424,6 +424,10 @@ class TestFTraceSched(utils_tests.SetupDirectory):
"""Test with a matching unique but no special fields"""
version_parser = trappy.register_dynamic_ftrace("Version", "version")
+ # Append invalid line to file
+ with open("trace.txt", "a") as fil:
+ fil.write("version = 6")
+
with self.assertRaises(ValueError):
trappy.FTrace(scope="custom")
