Skip to content

Commit

Permalink
Merge pull request #5 from smitterl/test_prefix
Browse files Browse the repository at this point in the history
avocado_list: make work with new test runner
  • Loading branch information
smitterl authored Sep 27, 2021
2 parents 98dd21b + dcf14cf commit c2ae867
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions avocado_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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-options>] <--vt-only-filter argument>")
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit c2ae867

Please sign in to comment.