From a654f0d0889c50d0995bd873c119ae75b0ab5a09 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 13 Apr 2016 11:09:33 -0700 Subject: Add dummy -j flags to pixel and javascript test runners This is an intermediate step to creating a unified test runner. We need to update Dr Memory to pass the -j 1 flag to the pixel and javascript tests. In order to do so, we need to have the flag available. The flag will be enabled for pixel and javascript tests when [1] lands. 1- https://codereview.chromium.org/1886753002/ Review URL: https://codereview.chromium.org/1882143005 --- testing/tools/run_javascript_tests.py | 3 +++ testing/tools/run_pixel_tests.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/testing/tools/run_javascript_tests.py b/testing/tools/run_javascript_tests.py index b09ea49e78..4e066a1c97 100755 --- a/testing/tools/run_javascript_tests.py +++ b/testing/tools/run_javascript_tests.py @@ -46,6 +46,9 @@ def main(): parser = optparse.OptionParser() parser.add_option('--build-dir', default=os.path.join('out', 'Debug'), help='relative path from the base source directory') + parser.add_option('-j', default=1, + dest='num_workers', type='int', + help='run NUM_WORKERS jobs in parallel (currently ignored)') parser.add_option('--wrapper', default='', dest="wrapper", help='Dr. Memory wrapper for running test under Dr. Memory') options, args = parser.parse_args() diff --git a/testing/tools/run_pixel_tests.py b/testing/tools/run_pixel_tests.py index 8a102f4c42..e2066e4811 100755 --- a/testing/tools/run_pixel_tests.py +++ b/testing/tools/run_pixel_tests.py @@ -55,6 +55,9 @@ def main(): parser = optparse.OptionParser() parser.add_option('--build-dir', default=os.path.join('out', 'Debug'), help='relative path from the base source directory') + parser.add_option('-j', default=1, + dest='num_workers', type='int', + help='run NUM_WORKERS jobs in parallel (currently ignored)') parser.add_option('--wrapper', default='', dest="wrapper", help='Dr. Memory wrapper for running test under Dr. Memory') options, args = parser.parse_args() -- cgit v1.2.3