diff --git a/tests_integration/run.py b/tests_integration/run.py index 2b3a089..3fbadd9 100644 --- a/tests_integration/run.py +++ b/tests_integration/run.py @@ -8,9 +8,13 @@ import sys if __name__ == "__main__": print("Building and running integration tests...") print("Building Spoolman...") - os.system("docker build -t donkie/spoolman:test .") + if os.system("docker build -t donkie/spoolman:test .") > 0: + print("Failed to build Spoolman!") + sys.exit(1) print("Building Spoolman tester...") - os.system("docker build -t donkie/spoolman-tester:latest tests_integration") + if os.system("docker build -t donkie/spoolman-tester:latest tests_integration") > 0: + print("Failed to build Spoolman tester!") + sys.exit(1) # Support input arguments for running only specific tests if len(sys.argv) > 1: