diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-03-23 14:24:13 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-03-23 14:24:13 -0700 |
commit | f8c5de459fee0816a98a691a12ed21b633b98bb4 (patch) | |
tree | 94623a0508cb4600a8ad65883a709b409365ab82 /testing | |
parent | 97c87e787710ee9ca5261eab928295db09c23024 (diff) | |
download | pdfium-f8c5de459fee0816a98a691a12ed21b633b98bb4.tar.xz |
Support comments and blank lines in SUPPRESSIONS file
The comment character is #.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1029193002
Diffstat (limited to 'testing')
-rwxr-xr-x | testing/tools/run_corpus_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/tools/run_corpus_tests.py b/testing/tools/run_corpus_tests.py index d56cb1c238..05be76ef37 100755 --- a/testing/tools/run_corpus_tests.py +++ b/testing/tools/run_corpus_tests.py @@ -87,7 +87,8 @@ def main(): os.makedirs(working_dir) with open(os.path.join(testing_dir, 'SUPPRESSIONS')) as f: - suppression_list = [x.strip() for x in f.readlines()] + suppression_list = [y for y in [ + x.split('#')[0].strip() for x in f.readlines()] if y] # test files are under .../pdfium/testing/corpus. failures = [] |