Skip to content

Commit 3bc1aec

Browse files
committed
Replaced test-name chars to create valid URL script_param
1 parent c0ac8fb commit 3bc1aec

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

vtr_flow/scripts/python_libs/vtr/log_parse.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,7 @@ def load_script_param(script_param):
301301
script_param = script_param.replace(" ", "_")
302302
else:
303303
script_param = "common"
304-
for spec_char in [":", "<", ">", "|", "*", "?"]:
305-
# replaced to create valid URL path
306-
script_param = script_param.replace(spec_char, "_")
304+
307305
return script_param
308306

309307

vtr_flow/scripts/python_libs/vtr/task.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,9 @@ def create_job(
495495
Create an individual job with the specified parameters
496496
"""
497497
param_string = "common" + (("_" + param.replace(" ", "_")) if param else "")
498+
for spec_char in [":", "<", ">", "|", "*", "?"]:
499+
# replaced to create valid URL path
500+
param_string = param_string.replace(spec_char, "_")
498501
if not param:
499502
param = "common"
500503

0 commit comments

Comments
 (0)