mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-04 04:07:08 +00:00
Tests diff the output and expected output until the end of both file
This commit is contained in:
parent
c3635f84d3
commit
67d09c2c26
8
test.py
8
test.py
@ -218,11 +218,15 @@ def run_tests(test_list, args):
|
||||
|
||||
for i in range(0, min(len(output_lines), len(expected_lines))):
|
||||
if output_lines[i] != expected_lines[i]:
|
||||
print "%i < %s" % (i, output_lines[i])
|
||||
print "%i > %s" % (i, expected_lines[i])
|
||||
print "E%i < %s" % (i, expected_lines[i])
|
||||
print "O%i > %s" % (i, output_lines[i])
|
||||
different = True
|
||||
|
||||
if len(output_lines) != len(expected_lines):
|
||||
for i in range(len(output_lines), len(expected_lines)):
|
||||
print "E%i < %s" % (i, expected_lines[i])
|
||||
for i in range(len(expected_lines), len(output_lines)):
|
||||
print "O%i > %s" % (i, output_lines[i])
|
||||
print "*** Different number of lines!"
|
||||
different = True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user