From dcf14cf63ea9e0d7d2bf33d6fb80a5e2a1390b3a Mon Sep 17 00:00:00 2001 From: Sebastian Mitterle Date: Mon, 27 Sep 2021 04:30:08 -0400 Subject: [PATCH] avocado_list: make work with new test runner Upstream test listing uses different test type. Signed-off-by: Sebastian Mitterle --- avocado_list.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/avocado_list.py b/avocado_list.py index eb5843a..b050623 100644 --- a/avocado_list.py +++ b/avocado_list.py @@ -9,6 +9,7 @@ SHOW_STATS = False APPLY_FILTER = None OPTIONS = None +TEST_TYPE = "avocado-vt" def print_help(exit_code): print(sys.argv[0] + " [-t] [-s] <-p|-m> [] <--vt-only-filter argument>") @@ -60,9 +61,9 @@ def get_avocado_list(): (OPTIONS, ONLY)) output = subprocess.check_output(command, shell=True).decode() for row in output.split('\n'): - if not row.startswith("VT"): + if not row.startswith(TEST_TYPE): continue - test_names.append(re.sub("VT\\s+.*autotest-libvirt.", "", row)) + test_names.append(re.sub(TEST_TYPE + "\\s+.*autotest-libvirt.", "", row)) return test_names