From 566e103446d50c653d4c8fa399a53d80aadb56c6 Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Wed, 30 Oct 2024 17:42:37 +0530 Subject: [PATCH 1/2] Fix gh action for individual CM sript tests --- .github/workflows/run-individual-script-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-individual-script-tests.yml b/.github/workflows/run-individual-script-tests.yml index d06696f74..04a709c97 100644 --- a/.github/workflows/run-individual-script-tests.yml +++ b/.github/workflows/run-individual-script-tests.yml @@ -15,7 +15,7 @@ jobs: - name: 'Checkout' uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 2 - name: Get changed files id: getfile run: | From 0694dce0a02b0c0c19668f953272eb2bebfd3b5e Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Wed, 30 Oct 2024 17:49:57 +0530 Subject: [PATCH 2/2] 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 d5388846f..7be9aa855 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 386110edf..558c47a2e 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)