@@ -388,24 +388,28 @@ def generate_single_benchmark_ci_args(parsed_args: Namespace, specific_run_type:
388
388
# 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
389
389
elif specific_run_type == RunType .WasmInterpreter :
390
390
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`
391
393
bdn_args_unescaped += [
392
394
'--anyCategories' , 'Libraries' , 'Runtime' ,
393
395
'--category-exclusion-filter' , 'NoInterpreter' , 'NoWASM' , 'NoMono' ,
394
396
'--wasmDataDir' , os .path .join (get_run_artifact_path (parsed_args , RunType .WasmInterpreter , commit ), "wasm_bundle" , "wasm-data" ),
395
397
'--wasmEngine' , parsed_args .wasm_engine_path ,
396
- '--wasmArgs' , '\" --experimental-wasm-eh --expose_wasm --module\" ' ,
398
+ '--wasmArgs' , '\" --experimental-wasm-eh --expose_wasm --module\" ' ,
397
399
'--logBuildOutput' ,
398
400
'--generateBinLog'
399
401
]
400
402
401
403
elif specific_run_type == RunType .WasmAOT :
402
404
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`
403
407
bdn_args_unescaped += [
404
408
'--anyCategories' , 'Libraries' , 'Runtime' ,
405
409
'--category-exclusion-filter' , 'NoInterpreter' , 'NoWASM' , 'NoMono' ,
406
410
'--wasmDataDir' , os .path .join (get_run_artifact_path (parsed_args , RunType .WasmAOT , commit ), "wasm_bundle" , "wasm-data" ),
407
411
'--wasmEngine' , parsed_args .wasm_engine_path ,
408
- '--wasmArgs' , '\" --experimental-wasm-eh --expose_wasm --module\" ' ,
412
+ '--wasmArgs' , '\" --experimental-wasm-eh --expose_wasm --module\" ' ,
409
413
'--aotcompilermode' , 'wasm' ,
410
414
'--logBuildOutput' ,
411
415
'--generateBinLog'
@@ -622,4 +626,4 @@ def __main(args: list):
622
626
# TODO: Compare the results of the benchmarks with results comparer (Currently will need to be done manually)
623
627
624
628
if __name__ == "__main__" :
625
- __main (sys .argv [1 :])
629
+ __main (sys .argv [1 :])
0 commit comments