From d532036fbb0efa4687f89598ff37518e3825c7b9 Mon Sep 17 00:00:00 2001 From: stephana Date: Thu, 26 Jan 2017 15:18:54 -0800 Subject: Add flag to ignore images by their MD5 digest BUG= Review-Url: https://codereview.chromium.org/2649313005 --- testing/tools/test_runner.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'testing/tools/test_runner.py') 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: -- cgit v1.2.3