summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorphajdan.jr <phajdan.jr@chromium.org>2015-07-07 03:24:51 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-07 10:25:28 +0000
commitbd11cd11925a1fd9da7a7d5d57b53ae546f278bf (patch)
tree8eb43c3ebcc0460f400203380449c3bc17bb5ba5 /testing
parent4e413a1094ee04c1c56241fb020ecde8963c1bea (diff)
downloadchromium_src-bd11cd11925a1fd9da7a7d5d57b53ae546f278bf.zip
chromium_src-bd11cd11925a1fd9da7a7d5d57b53ae546f278bf.tar.gz
chromium_src-bd11cd11925a1fd9da7a7d5d57b53ae546f278bf.tar.bz2
Add --use-src-side-runtest-py flag to testing/scripts/common.py
This will make it a valid flag so that recipes can start passing it. For now it's no-op because default is going to be build-side runtest.py (e.g. for chromium.perf infrastructure). Next step will be making recipes pass that flag and change the wrapper to make it take effect. BUG=506498 Review URL: https://codereview.chromium.org/1222903003 Cr-Commit-Position: refs/heads/master@{#337579}
Diffstat (limited to 'testing')
-rw-r--r--testing/scripts/common.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/scripts/common.py b/testing/scripts/common.py
index 0302ccc..6a687a2 100644
--- a/testing/scripts/common.py
+++ b/testing/scripts/common.py
@@ -37,6 +37,11 @@ def run_script(argv, funcs):
# behavior of the script.
parser.add_argument('--args', type=parse_json, default=[])
+ parser.add_argument(
+ '--use-src-side-runtest-py', action='store_true',
+ help='Use the src-side copy of runtest.py, as opposed to the build-side '
+ 'one')
+
subparsers = parser.add_subparsers()
run_parser = subparsers.add_parser('run')