diff --git a/.github/workflows/bench.py b/.github/workflows/bench.py index 534abeda0..eb8804fde 100644 --- a/.github/workflows/bench.py +++ b/.github/workflows/bench.py @@ -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}")