]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
runner: Use set-literal notation
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 5 Jan 2024 21:47:35 +0000 (21:47 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 8 Jan 2024 14:40:12 +0000 (14:40 +0000)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xtf-runner

index 2d9b453d472abbfa0ec6d97eb55426e28bb0a785..87ae321c631d53fc37bbbdfa9aa43ca5377b0d40 100755 (executable)
@@ -39,13 +39,13 @@ def exit_code(state):
     }[state]
 
 # All test categories
-default_categories     = set(("functional", "xsa"))
-non_default_categories = set(("special", "utility", "in-development"))
+default_categories     = {"functional", "xsa"}
+non_default_categories = {"special", "utility", "in-development"}
 all_categories         = default_categories | non_default_categories
 
 # All test environments
-pv_environments        = set(("pv64", "pv32pae"))
-hvm_environments       = set(("hvm64", "hvm32pae", "hvm32pse", "hvm32"))
+pv_environments        = {"pv64", "pv32pae"}
+hvm_environments       = {"hvm64", "hvm32pae", "hvm32pse", "hvm32"}
 all_environments       = pv_environments | hvm_environments
 
 
@@ -365,11 +365,11 @@ def interpret_selection(opts):
     # Allow "pv" and "hvm" as a combination of environments
     if "pv" in others:
         envs |= pv_environments
-        others -= set(("pv", ))
+        others -= {"pv"}
 
     if "hvm" in others:
         envs |= hvm_environments
-        others -= set(("hvm", ))
+        others -= {"hvm"}
 
     # No input? No selection.
     if not cats and not envs and not others: