DumpRunner: Fix compare when frames are missing.

This commit is contained in:
lightningterror 2025-01-17 04:29:37 +01:00
parent 0090655899
commit 513c44f07f
1 changed files with 9 additions and 2 deletions

View File

@ -113,8 +113,15 @@ def check_regression_test(baselinedir, testdir, name):
path2 = os.path.join(dir2, imagename)
if not os.path.isfile(path2):
print("--- Frame %u for %s is missing in test set" % (framenum, name))
write("<h1>{}</h1>".format(name))
write("<pre>--- Frame %u for %s is missing in test set</pre>" % (framenum, name))
if first_fail:
write("<h1>{}</h1>".format(name))
if first_fail == False:
write("</table>")
write("<pre>--- Frame %u for %s is missing in test set</pre>" % (framenum, name))
write("</div>")
else:
write("<pre>--- Frame %u for %s is missing in test set</pre>" % (framenum, name))
return False
if not compare_frames(path1, path2):