Commit b805b992 authored by Florian Fischer's avatar Florian Fischer
Browse files

[bench/client] fix mutation during iteration bug

parent 3f4dbc3c
Pipeline #67446 failed with stage
in 43 seconds
......@@ -124,15 +124,16 @@ def run_remote_clients(cmd: str, out: Path, err: Path, csv: Path,
for host in hosts:
# prepend out files with the host the client runs on
out = out.parent / f'{host}-{out.name}'
err = err.parent / f'{host}-{err.name}'
csv = csv.parent / f'{host}-{csv.name}'
h_out = out.parent / f'{host}-{out.name}'
h_err = err.parent / f'{host}-{err.name}'
h_csv = csv.parent / f'{host}-{csv.name}'
files.extend([out, err, csv])
files.extend([h_out, h_err, h_csv])
cmd = cmd.format(outfile=csv)
h_cmd = cmd.format(outfile=h_csv)
clients.append(Client(cmd, out, err, remote_cmd=remote_cmd, host=host))
clients.append(
Client(h_cmd, h_out, h_err, remote_cmd=remote_cmd, host=host))
# await all clients
for client in clients:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment