From 67114d1a808ac0d90f068662840b8ee527ea8c3d Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 28 Jun 2023 11:02:47 -0700 Subject: [PATCH] Fail if docker build fails --- benchmark/benchmark.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py index fe52756c6..008f5163f 100755 --- a/benchmark/benchmark.py +++ b/benchmark/benchmark.py @@ -443,6 +443,10 @@ def build_docker(): except subprocess.CalledProcessError as e: res = f"Failed to build Docker image: {e.output}" + raise e + + if result.returncode != 0: + raise Exception("Unable to build docker image") return res