Skip to content

Commit

Permalink
fix bug in shell_static_scheduler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BerengerBerthoul committed Dec 4, 2024
1 parent ad8bbbf commit fc96d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_parallel/shell_static_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ def submit_items(items_to_run, SCHEDULER_IP_ADDRESS, port, main_invoke_params, n
test_out_file_base = f'.pytest_parallel/{remove_exotic_chars(item.nodeid)}'
cmd = mpi_command(current_proc, item.n_proc)
cmd += f' python3 -u -m pytest -s {worker_flags} {main_invoke_params} --_test_idx={test_idx} {item.config.rootpath}/{item.nodeid}'
cmd += f' > {test_out_file_base}\n'
cmd += f' > {test_out_file_base}'
cmds.append(cmd)
current_proc += item.n_proc

script = " & \\\n".join(cmds)
script = " & \\\n".join(cmds) + '\n'
Path('.pytest_parallel').mkdir(exist_ok=True)
script_path = f'.pytest_parallel/pytest_static_sched_{i_step}.sh'
with open(script_path,'w') as f:
Expand Down

0 comments on commit fc96d58

Please sign in to comment.