From 0694dce0a02b0c0c19668f953272eb2bebfd3b5e Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Wed, 30 Oct 2024 17:49:57 +0530 Subject: [PATCH] Fix gh action for individual CM sript tests --- automation/script/module.py | 3 +-- tests/script/process_tests.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/automation/script/module.py b/automation/script/module.py index d5388846f5..7be9aa8554 100644 --- a/automation/script/module.py +++ b/automation/script/module.py @@ -2425,12 +2425,11 @@ def test(self, i): alias = meta.get('alias','') uid = meta.get('uid','') - if console: logging.info(path) test_config = meta.get('tests', '') if test_config: - log.info(test_config) + logging.info(test_config) test_all_variations = test_config.get('test-all-variations', False) if test_all_variations: variations = meta.get("variations") diff --git a/tests/script/process_tests.py b/tests/script/process_tests.py index 386110edf4..558c47a2ee 100644 --- a/tests/script/process_tests.py +++ b/tests/script/process_tests.py @@ -8,6 +8,7 @@ files=sys.argv[1:] for file in files: + print(file) if not os.path.isfile(file): continue if not file.endswith("_cm.json") and not file.endswith("_cm.yaml"): @@ -20,5 +21,5 @@ data = yaml.safe_load(f) uid = data['uid'] - r = cm.access({'action':'test', 'automation':'script', 'artifact': uid, 'quiet': 'yes'}) + r = cm.access({'action':'test', 'automation':'script', 'artifact': uid, 'quiet': 'yes', 'out': 'con'}) checks.check_return(r)