@@ -388,24 +388,28 @@ def generate_single_benchmark_ci_args(parsed_args: Namespace, specific_run_type:
388388 # for commit in all_commits: There is not a way to run multiple Wasm's at once via CI, instead will split single run vs multi-run scenarios
389389 elif specific_run_type == RunType .WasmInterpreter :
390390 benchmark_ci_args += ['--wasm' ]
391+ # Ensure there is a space at the beginning of `--wasmArgs` argument, so BDN
392+ # can correctly read them as sub-arguments for `--wasmArgs`
391393 bdn_args_unescaped += [
392394 '--anyCategories' , 'Libraries' , 'Runtime' ,
393395 '--category-exclusion-filter' , 'NoInterpreter' , 'NoWASM' , 'NoMono' ,
394396 '--wasmDataDir' , os .path .join (get_run_artifact_path (parsed_args , RunType .WasmInterpreter , commit ), "wasm_bundle" , "wasm-data" ),
395397 '--wasmEngine' , parsed_args .wasm_engine_path ,
396- '--wasmArgs' , '\" --experimental-wasm-eh --expose_wasm --module\" ' ,
398+ '--wasmArgs' , '\" --experimental-wasm-eh --expose_wasm --module\" ' ,
397399 '--logBuildOutput' ,
398400 '--generateBinLog'
399401 ]
400402
401403 elif specific_run_type == RunType .WasmAOT :
402404 benchmark_ci_args += ['--wasm' ]
405+ # Ensure there is a space at the beginning of `--wasmArgs` argument, so BDN
406+ # can correctly read them as sub-arguments for `--wasmArgs`
403407 bdn_args_unescaped += [
404408 '--anyCategories' , 'Libraries' , 'Runtime' ,
405409 '--category-exclusion-filter' , 'NoInterpreter' , 'NoWASM' , 'NoMono' ,
406410 '--wasmDataDir' , os .path .join (get_run_artifact_path (parsed_args , RunType .WasmAOT , commit ), "wasm_bundle" , "wasm-data" ),
407411 '--wasmEngine' , parsed_args .wasm_engine_path ,
408- '--wasmArgs' , '\" --experimental-wasm-eh --expose_wasm --module\" ' ,
412+ '--wasmArgs' , '\" --experimental-wasm-eh --expose_wasm --module\" ' ,
409413 '--aotcompilermode' , 'wasm' ,
410414 '--logBuildOutput' ,
411415 '--generateBinLog'
@@ -622,4 +626,4 @@ def __main(args: list):
622626 # TODO: Compare the results of the benchmarks with results comparer (Currently will need to be done manually)
623627
624628if __name__ == "__main__" :
625- __main (sys .argv [1 :])
629+ __main (sys .argv [1 :])
0 commit comments