Skip to content

Commit

Permalink
Redirect stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeASSIER committed Dec 27, 2023
1 parent e83402f commit 2435d87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def run(url: str, bombardierduration: str):
logging.error(f"🚨 Command failed with return code {e.returncode}")

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

Expand Down

0 comments on commit 2435d87

Please sign in to comment.