]> xenbits.xensource.com Git - xtf.git/commitdiff
Revert part of "Revert "Fix the use of ./xtf-runner on Python 2.4""
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Nov 2019 16:42:38 +0000 (16:42 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Nov 2019 16:43:41 +0000 (16:43 +0000)
{} for set notation isn't Py 2.6 compatible.

Reported-by: Glenn Enright <glenn@rimuhosting.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xtf-runner

index e9c1ca451fd94ba2de6005aea3aeff5017f3aba0..518a70a279e752457c58a5fbe158209d017c7fac 100755 (executable)
@@ -42,13 +42,13 @@ def exit_code(state):
     }[state]
 
 # All test categories
-default_categories     = {"functional", "xsa"}
-non_default_categories = {"special", "utility", "in-development"}
+default_categories     = set(("functional", "xsa"))
+non_default_categories = set(("special", "utility", "in-development"))
 all_categories         = default_categories | non_default_categories
 
 # All test environments
-pv_environments        = {"pv64", "pv32pae"}
-hvm_environments       = {"hvm64", "hvm32pae", "hvm32pse", "hvm32"}
+pv_environments        = set(("pv64", "pv32pae"))
+hvm_environments       = set(("hvm64", "hvm32pae", "hvm32pse", "hvm32"))
 all_environments       = pv_environments | hvm_environments
 
 
@@ -362,11 +362,11 @@ def interpret_selection(opts):
     # Allow "pv" and "hvm" as a combination of environments
     if "pv" in others:
         envs |= pv_environments
-        others -= {"pv"}
+        others -= set(("pv", ))
 
     if "hvm" in others:
         envs |= hvm_environments
-        others -= {"hvm"}
+        others -= set(("hvm", ))
 
     # No input? No selection.
     if not cats and not envs and not others:
@@ -414,7 +414,7 @@ def interpret_selection(opts):
 
             break
 
-        selection = tests_from_selection(cats = {},
+        selection = tests_from_selection(cats = set(),
                                          envs = set(host_envs),
                                          tests = selection)