@@ -321,7 +321,7 @@ def generate_srun_args(args, runtime_mode, timestamp):
321321
322322
323323def generate_pytest_command (
324- llm_src , work_dir , config_file_base_name , select_pattern , runtime_mode , benchmark_mode
324+ test_prefix , work_dir , config_file_base_name , select_pattern , runtime_mode , benchmark_mode
325325):
326326 """Generate pytest command and test list."""
327327 # Generate test list content based on runtime_mode and benchmark_mode
@@ -344,8 +344,8 @@ def generate_pytest_command(
344344 test_list_path = os .path .join (work_dir , "test_list.txt" )
345345
346346 pytest_command = (
347- f"pytest -v -s "
348- f"--test-prefix={ llm_src } /tests/integration/defs "
347+ f"pytest -v "
348+ f"--test-prefix={ test_prefix } "
349349 f"--test-list={ test_list_path } "
350350 f"--output-dir={ work_dir } "
351351 f"-o junit_logging=out-err"
@@ -423,6 +423,7 @@ def main():
423423 default = "1-100" ,
424424 help = "Nsys start-stop range for generation workers in disaggregated mode (default: 1-100)" ,
425425 )
426+ parser .add_argument ("--test-prefix" , default = "" , help = "Test prefix" )
426427
427428 args = parser .parse_args ()
428429
@@ -480,6 +481,8 @@ def main():
480481 work_dir = os .path .join (llm_src , "jenkins" , "scripts" , "perf" , "local" , timestamp )
481482 os .makedirs (work_dir , exist_ok = True )
482483
484+ test_prefix = args .test_prefix if args .test_prefix else f"{ llm_src } /tests/integration/defs"
485+
483486 # Determine paths
484487 launch_sh = args .launch_sh if args .launch_sh else os .path .join (work_dir , "slurm_launch.sh" )
485488 run_sh = (
@@ -521,7 +524,7 @@ def main():
521524
522525 # Generate pytest command
523526 pytest_command , test_list_content , test_list_path = generate_pytest_command (
524- llm_src , work_dir , config_file_base_name , select_pattern , runtime_mode , benchmark_mode
527+ test_prefix , work_dir , config_file_base_name , select_pattern , runtime_mode , benchmark_mode
525528 )
526529
527530 # Write test list file
0 commit comments