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

Unified Diff: testing/tools/run_pixel_tests.py

Issue 1407913005: Allow running individual tests. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 2 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/run_pixel_tests.py
diff --git a/testing/tools/run_pixel_tests.py b/testing/tools/run_pixel_tests.py
index c65a67aa17abeab660ee1da5faf184bb2123b003..5858c5c62819abeb32129d94e5ac1620a91711c2 100755
--- a/testing/tools/run_pixel_tests.py
+++ b/testing/tools/run_pixel_tests.py
@@ -66,9 +66,17 @@ def main():
test_suppressor = suppressor.Suppressor(finder)
image_differ = pngdiffer.PNGDiffer(finder)
+ input_files = []
Tom Sepez 2015/10/28 20:25:48 ditto
dsinclair 2015/10/28 20:56:46 Done.
+ for file_name in args:
+ file_name = file_name.replace(".pdf", ".in")
+ input_files.append(file_name)
+
+ if len(input_files) == 0:
+ input_files = os.listdir(source_dir)
+
failures = []
input_file_re = re.compile('^[a-zA-Z0-9_.]+[.]in$')
- for input_filename in os.listdir(source_dir):
+ for input_filename in input_files:
if input_file_re.match(input_filename):
input_path = os.path.join(source_dir, input_filename)
if os.path.isfile(input_path):
« testing/tools/run_javascript_tests.py ('K') | « testing/tools/run_javascript_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698