Skip to content

Commit

Permalink
Fix gh action for individual CM sript tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Oct 30, 2024
1 parent ccddc69 commit 0694dce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions automation/script/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 2 additions & 1 deletion tests/script/process_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand All @@ -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)

0 comments on commit 0694dce

Please sign in to comment.