@@ -68,7 +68,6 @@ def test_unittests_v2(llm_root, llm_venv, case: str, output_dir, request):
68
68
69
69
test_root = tests_path ()
70
70
dry_run = False
71
- passed = True
72
71
73
72
my_test_prefix = request .config .getoption ("--test-prefix" )
74
73
if my_test_prefix :
@@ -153,8 +152,7 @@ def run_command(cmd):
153
152
output_dir ,
154
153
f'parallel-sub-results-unittests-{ case_fn } .xml.intermediate' )
155
154
parallel_command = command + [
156
- "-n" , f"{ num_workers } " , '--reruns' , '3' ,
157
- f"--junitxml={ parallel_output_xml } "
155
+ "-n" , f"{ num_workers } " , f"--junitxml={ parallel_output_xml } "
158
156
]
159
157
passed = run_command (parallel_command )
160
158
@@ -170,11 +168,10 @@ def run_command(cmd):
170
168
output_dir ,
171
169
f'retry-sub-results-unittests-{ case_fn } .xml.intermediate' )
172
170
# Run failed case sequentially.
173
- command = [
174
- '-m' , 'pytest' , "-p" , "no:xdist" , ignore_opt , "-v" , '--lf' ,
175
- f"--junitxml={ retry_output_xml } "
176
- ] + arg_list
177
- passed = run_command (command )
171
+ retry_command = command + [
172
+ "-p" , "no:xdist" , '--lf' , f"--junitxml={ retry_output_xml } "
173
+ ]
174
+ passed = run_command (retry_command )
178
175
179
176
if os .path .exists (retry_output_xml ):
180
177
merge_report (parallel_output_xml , retry_output_xml , output_xml ,
0 commit comments