summaryrefslogtreecommitdiff
path: root/testing/tools/test_runner.py
diff options
context:
space:
mode:
authorstephana <stephana@google.com>2017-01-26 15:18:54 -0800
committerCommit bot <commit-bot@chromium.org>2017-01-26 15:18:54 -0800
commitd532036fbb0efa4687f89598ff37518e3825c7b9 (patch)
treece9e4b228b73a019f2bf576b5331ba1a58e6f755 /testing/tools/test_runner.py
parent0630447196b898b60103ca634e5c9d034b9d24d1 (diff)
downloadpdfium-d532036fbb0efa4687f89598ff37518e3825c7b9.tar.xz
Add flag to ignore images by their MD5 digestchromium/2994
BUG= Review-Url: https://codereview.chromium.org/2649313005
Diffstat (limited to 'testing/tools/test_runner.py')
-rw-r--r--testing/tools/test_runner.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/testing/tools/test_runner.py b/testing/tools/test_runner.py
index 92db9118dd..3a31709be4 100644
--- a/testing/tools/test_runner.py
+++ b/testing/tools/test_runner.py
@@ -163,6 +163,9 @@ class TestRunner:
parser.add_option('--gold_output_dir', default='', dest="gold_output_dir",
help='Path of where to write the JSON output to be uploaded to Gold.')
+ parser.add_option('--gold_ignore_hashes', default='', dest="gold_ignore_hashes",
+ help='Path to a file with MD5 hashes we wish to ignore.')
+
parser.add_option('--ignore_errors', action="store_true", dest="ignore_errors",
help='Prevents the return value from being non-zero when image comparison fails.')
@@ -227,7 +230,8 @@ class TestRunner:
self.gold_results = gold.GoldResults("pdfium",
options.gold_output_dir,
options.gold_properties,
- options.gold_key)
+ options.gold_key,
+ options.gold_ignore_hashes)
if options.num_workers > 1 and len(test_cases) > 1:
try: