Skip to content

Commit 2435d87

Browse files
Redirect stdout
1 parent e83402f commit 2435d87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/bench.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ def run(url: str, bombardierduration: str):
2727
logging.error(f"🚨 Command failed with return code {e.returncode}")
2828

2929
try:
30-
subprocess.run(["./bombardier", "-c", "400", "-p", "intro,result", "--http1", "-l", "-d", bombardierduration, url, ">", "sozu.log"])
30+
f = open("sozu.log", "w")
31+
subprocess.run(["./bombardier", "-c", "400", "-p", "intro,result", "--http1", "-l", "-d", bombardierduration, url],stdout=f)
32+
f.close()
3133
except subprocess.CalledProcessError as e:
3234
logging.error(f"🚨 Failed to run benchmark {e.returncode}")
3335

0 commit comments

Comments
 (0)