[test] Fix for keying variants.
authormachenbach <machenbach@chromium.org>
Wed, 29 Jul 2015 07:40:50 +0000 (00:40 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 29 Jul 2015 07:40:57 +0000 (07:40 +0000)
BUG=chromium:511215
NOTREECHECKS=true
NOTRY=true
LOG=n
TBR=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/1262113002

Cr-Commit-Position: refs/heads/master@{#29900}

tools/run-tests.py

index 2b985fccb3b154b61654a5443a2fee3f64a7035f..a98bd40d88dd2745cfc94c4a6a554b47adecdd06 100755 (executable)
@@ -423,8 +423,8 @@ def ProcessOptions(options):
     VARIANTS = ["stress"]
   if options.variants:
     VARIANTS = options.variants.split(",")
-    if not set(VARIANTS).issubset(ALL_VARIANTS.keys()):
-      print "All variants must be in %s" % str(ALL_VARIANTS.keys())
+    if not set(VARIANTS).issubset(ALL_VARIANTS):
+      print "All variants must be in %s" % str(ALL_VARIANTS)
       return False
   if options.predictable:
     VARIANTS = ["default"]