| Index: tools/run-tests.py
|
| diff --git a/tools/run-tests.py b/tools/run-tests.py
|
| index 669a156975993c90924ded4be4916a37c03911b8..94eafbda207cb3c98a116659e34344a3e36594ad 100755
|
| --- a/tools/run-tests.py
|
| +++ b/tools/run-tests.py
|
| @@ -44,7 +44,7 @@ import time
|
| from testrunner.local import execution
|
| from testrunner.local import progress
|
| from testrunner.local import testsuite
|
| -from testrunner.local.testsuite import VARIANT_FLAGS
|
| +from testrunner.local.testsuite import ALL_VARIANTS
|
| from testrunner.local import utils
|
| from testrunner.local import verbose
|
| from testrunner.network import network_execution
|
| @@ -332,7 +332,7 @@ def BuildbotToV8Mode(config):
|
| return mode.lower()
|
|
|
| def ProcessOptions(options):
|
| - global VARIANT_FLAGS
|
| + global ALL_VARIANTS
|
| global VARIANTS
|
|
|
| # Architecture and mode related stuff.
|
| @@ -423,8 +423,8 @@ def ProcessOptions(options):
|
| VARIANTS = ["stress"]
|
| if options.variants:
|
| VARIANTS = options.variants.split(",")
|
| - if not set(VARIANTS).issubset(VARIANT_FLAGS.keys()):
|
| - print "All variants must be in %s" % str(VARIANT_FLAGS.keys())
|
| + if not set(VARIANTS).issubset(ALL_VARIANTS.keys()):
|
| + print "All variants must be in %s" % str(ALL_VARIANTS.keys())
|
| return False
|
| if options.predictable:
|
| VARIANTS = ["default"]
|
| @@ -621,10 +621,10 @@ def Execute(arch, mode, args, options, suites, workspace):
|
| if options.cat:
|
| verbose.PrintTestSource(s.tests)
|
| continue
|
| - variant_flags = [VARIANT_FLAGS[var] for var in VARIANTS]
|
| - variant_tests = [ t.CopyAddingFlags(v)
|
| + variant_flags = s.VariantFlags(VARIANTS)
|
| + variant_tests = [ t.CopyAddingFlags(flags)
|
| for t in s.tests
|
| - for v in s.VariantFlags(t, variant_flags) ]
|
| + for _, flags in variant_flags(t) ]
|
|
|
| if options.random_seed_stress_count > 1:
|
| # Duplicate test for random seed stress mode.
|
| @@ -637,9 +637,9 @@ def Execute(arch, mode, args, options, suites, workspace):
|
| else:
|
| yield ["--random-seed=%d" % RandomSeed()]
|
| s.tests = [
|
| - t.CopyAddingFlags(v)
|
| + t.CopyAddingFlags(flags)
|
| for t in variant_tests
|
| - for v in iter_seed_flags()
|
| + for flags in iter_seed_flags()
|
| ]
|
| else:
|
| s.tests = variant_tests
|
|
|