Skip to content

Commit 4f8c4ff

Browse files
committed
Add full_testcase_name parameter
The full_testcase_name stores the full test case name Signed-off-by: Houqi (Nick) Zuo <hzuo@redhat.com>
1 parent e6a3d8b commit 4f8c4ff

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

avocado_vt/discovery.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"""
1717
Avocado VT plugin
1818
"""
19+
import re
1920

2021
from virttest.compat import get_opt
2122

@@ -47,6 +48,10 @@ def convert_parameters(self, params):
4748
:return: dict with test name and vt parameters
4849
"""
4950
test_name = params.get("_short_name_map_file")["subtests.cfg"]
51+
# Store the pure test case name by removing type_specific and provider prefixes
52+
params["full_testcase_name"] = re.sub(
53+
r'^(type_specific\.)?(io-[^.]+\.)', '', test_name
54+
)
5055
if get_opt(self.config, "vt.config") and get_opt(
5156
self.config, "vt.short_names_when_config"
5257
):

0 commit comments

Comments
 (0)