From 05a6d87ee4e18f79de83358f382fb34c1539c03b Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 5 Dec 2014 01:09:13 -0800 Subject: [PATCH] Teach the test runner whether it's running on a trybot or not BUG=none R=machenbach@chromium.org LOG=n Review URL: https://codereview.chromium.org/781763002 Cr-Commit-Position: refs/heads/master@{#25675} --- tools/run-deopt-fuzzer.py | 4 ++++ tools/run-tests.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tools/run-deopt-fuzzer.py b/tools/run-deopt-fuzzer.py index bd474f95ea..a6fdf3187d 100755 --- a/tools/run-deopt-fuzzer.py +++ b/tools/run-deopt-fuzzer.py @@ -160,6 +160,9 @@ def BuildOptions(): result.add_option("--buildbot", help="Adapt to path structure used on buildbots", default=False, action="store_true") + result.add_option("--dcheck-always-on", + help="Indicates that V8 was compiled with DCHECKs enabled", + default=False, action="store_true") result.add_option("--command-prefix", help="Prepended to each shell command used to run a test", default="") @@ -390,6 +393,7 @@ def Execute(arch, mode, args, options, suites, workspace): "system": utils.GuessOS(), "tsan": False, "msan": False, + "dcheck_always_on": options.dcheck_always_on, } all_tests = [] num_tests = 0 diff --git a/tools/run-tests.py b/tools/run-tests.py index d793a8ae71..d68d1f86bd 100755 --- a/tools/run-tests.py +++ b/tools/run-tests.py @@ -141,6 +141,9 @@ def BuildOptions(): result.add_option("--buildbot", help="Adapt to path structure used on buildbots", default=False, action="store_true") + result.add_option("--dcheck-always-on", + help="Indicates that V8 was compiled with DCHECKs enabled", + default=False, action="store_true") result.add_option("--cat", help="Print the source of the tests", default=False, action="store_true") result.add_option("--flaky-tests", @@ -508,6 +511,7 @@ def Execute(arch, mode, args, options, suites, workspace): "system": utils.GuessOS(), "tsan": options.tsan, "msan": options.msan, + "dcheck_always_on": options.dcheck_always_on, } all_tests = [] num_tests = 0