From f29c54eb143ca72efaef22857b9fe54fb1566bb6 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Fri, 5 Jan 2024 21:47:35 +0000 Subject: [PATCH] runner: Use set-literal notation Signed-off-by: Andrew Cooper --- xtf-runner | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xtf-runner b/xtf-runner index 2d9b453..87ae321 100755 --- a/xtf-runner +++ b/xtf-runner @@ -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: -- 2.39.5