Skip to content

Commit

Permalink
allow rtest list variations (#2852)
Browse files Browse the repository at this point in the history
* ci_labels optional list format support
  • Loading branch information
TorreZuk authored Jan 28, 2025
1 parent c7c0ac4 commit 2fbbb10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def parse_args():
# help='Verbose install (optional, default: False)')
return parser.parse_args()

def arg_into_list(arg) -> list:
arg = re.sub(r"['\"]|['\']",'', arg)
return arg.split(';')

def vram_detect():
global OS_info
Expand Down Expand Up @@ -322,7 +325,7 @@ def batch(script, xml):
raw_cmd = run.firstChild.data
var_cmd = raw_cmd.format_map(var_subs)
if args.ci_labels:
var_cmd = label_modifiers(var_cmd, args.ci_labels.split(';'))
var_cmd = label_modifiers(var_cmd, arg_into_list(args.ci_labels))
error = run_cmd(var_cmd, True, timeout, test_dir)
if (error == 2):
print( f'***\n*** Timed out when running: {name}\n***')
Expand Down

0 comments on commit 2fbbb10

Please sign in to comment.