From 99288df724c3ac27fb6c09f26c157cc4a317ee23 Mon Sep 17 00:00:00 2001 From: Ayush Jain Date: Fri, 11 Apr 2025 12:24:22 +0000 Subject: [PATCH] Fix tests file path from test cfg As expected tests path in cfg should be / currently this is broken and needs to pass "tests/" along with it tests// Fix that by joining TEST_DIR with tests path making it TEST_DIR/ (TEST_DIR="$BASE_PATH/tests") Signed-off-by: Ayush Jain --- avocado-setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avocado-setup.py b/avocado-setup.py index bde34a5c..d936a84f 100644 --- a/avocado-setup.py +++ b/avocado-setup.py @@ -511,7 +511,7 @@ def parse_test_config(test_config_file, avocado_bin, enable_kvm): continue # split line ignoring quotes used for additional args line = shlex.split(line) - test_dic['test'] = line[0].strip('$') + test_dic['test'] = os.path.join(TEST_DIR, line[0].strip('$')) test_dic['name'] = test_dic['test'].split("/")[-1] if ":" in test_dic['test'].split("/")[-1]: test_dic['name'] = "%s_%s" % (test_dic['name'].split(".")[0],