Index: tools/run-tests.py |
diff --git a/tools/run-tests.py b/tools/run-tests.py |
index 2344f907ec8e1b910efdea983d79e2cd229a71e5..291d34df8c29fd9b262eef75db62dfc44bc3a975 100755 |
--- a/tools/run-tests.py |
+++ b/tools/run-tests.py |
@@ -190,7 +190,7 @@ def ProcessOptions(options): |
options.mode = ",".join([tokens[1] for tokens in options.arch_and_mode]) |
options.mode = options.mode.split(",") |
for mode in options.mode: |
- if not mode.lower() in ["debug", "release"]: |
+ if not mode.lower() in ["debug", "release", "optdebug"]: |
print "Unknown mode %s" % mode |
return False |
if options.arch in ["auto", "native"]: |
@@ -339,6 +339,14 @@ def Execute(arch, mode, args, options, suites, workspace): |
"%s.%s" % (arch, mode)) |
shell_dir = os.path.relpath(shell_dir) |
+ if mode == "optdebug": |
+ global VARIANTS |
+ mode = "debug" |
+ options.flaky_tests = "skip" |
+ options.slow_tests = "skip" |
+ options.pass_fail_tests = "skip" |
+ VARIANTS=["default", "stress"] |
+ |
Michael Achenbach
2013/12/02 12:52:41
This overwrites the global options dependent on th
Jakob Kummerow
2013/12/02 14:22:56
Done.
|
# Populate context object. |
mode_flags = MODE_FLAGS[mode] |
timeout = options.timeout |