Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Unified Diff: testing/tools/pngdiffer.py

Issue 1952923002: Combine corpus runner into test_runner.py (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: testing/tools/pngdiffer.py
diff --git a/testing/tools/pngdiffer.py b/testing/tools/pngdiffer.py
index a1533b8329f4a440e5cee836ed3f0fee000d673c..aeed9af4c24e2ed43423a53591ae9a151d3bb5b2 100755
--- a/testing/tools/pngdiffer.py
+++ b/testing/tools/pngdiffer.py
@@ -57,7 +57,13 @@ class PNGDiffer():
if i == 0:
print "WARNING: no expected results files for " + input_filename
break
- print "Checking " + actual_path
+
+ short_path = actual_path
+ pos = short_path.find("pdfium/testing/")
+ if (pos != -1):
+ short_path = short_path[pos + len("pdfium/testing/"):]
+ print "Checking " + short_path
+
sys.stdout.flush()
if os.path.exists(expected_path):
error = common.RunCommand(

Powered by Google App Engine
This is Rietveld 408576698