@@ -497,12 +497,24 @@ def create_job(
497497 Create an individual job with the specified parameters
498498 """
499499 param_string = "common" + (("_" + param .replace (" " , "_" )) if param else "" )
500- for spec_char in [":" , "<" , ">" , "|" , "*" , "?" ]:
500+
501+ #remove any address-related characters that might be in the param_string
502+ #To avoid creating invalid URL path
503+ path_str = "../"
504+ if (path_str in param_string ):
505+ param_string = param_string .replace ("../" ,"" )
506+ param_string = param_string .replace ('-' ,'' )
507+ circuit_2 = circuit .replace (".blif" ,"" )
508+ if (circuit_2 in param_string ):
509+ ind = param_string .find (circuit_2 )
510+ param_string = param_string [ind + len (circuit_2 )+ 1 :]
511+
512+ for spec_char in [":" , "<" , ">" , "|" , "*" , "?" ,"/" ,"." ]:
501513 # replaced to create valid URL path
502514 param_string = param_string .replace (spec_char , "_" )
503515 if not param :
504516 param = "common"
505-
517+
506518 expected_min_w = ret_expected_min_w (circuit , arch , golden_results , param )
507519 expected_min_w = (
508520 int (expected_min_w * args .minw_hint_factor )
@@ -525,7 +537,7 @@ def create_job(
525537 ]
526538 current_parse_cmd .insert (0 , run_dir + "/{}" .format (load_script_param (param )))
527539 current_second_parse_cmd = second_parse_cmd .copy () if second_parse_cmd else None
528-
540+
529541 if config .second_parse_file :
530542 current_second_parse_cmd += [
531543 "arch={}" .format (arch ),
@@ -544,8 +556,10 @@ def create_job(
544556 current_qor_parse_command .insert (0 , run_dir + "/{}" .format (load_script_param (param )))
545557 current_cmd = cmd .copy ()
546558 current_cmd += ["-temp_dir" , run_dir + "/{}" .format (param_string )]
559+
547560 if param_string != "common" :
548561 current_cmd += param .split (" " )
562+
549563 return Job (
550564 config .task_name ,
551565 arch ,
0 commit comments