Skip to content

Commit d5fc0b0

Browse files
committed
change diff output
1 parent 329492d commit d5fc0b0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

TestCases/TestCase.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,14 @@ def run_filediff(self, with_tsan=False, with_asan=False):
361361

362362
# Assert that both files have the same number of lines
363363
if len(fromlines) != len(tolines):
364-
diff = ["ERROR: Number of lines in " + fromfile + " and " + tofile + " differ: " + len(fromlines) + " vs " + len(tolines) + "."]
364+
stringerr = "ERROR: Number of lines in " + str(fromfile) + " and " + str(tofile) + " differ: " + str(len(fromlines)) + " vs " + str(len(tolines)) + "."
365+
diff = [stringerr]
366+
print("generated file = ")
367+
for i_line in range(0, len(tolines)):
368+
print(i_line)
369+
for i_line in range(0, len(fromlines)):
370+
print(i_line)
371+
365372
passed = False
366373

367374
# Loop through all lines

0 commit comments

Comments
 (0)