This PR ensures that building the docker image in the bin/run-in-docker.sh and bin/run-tests-in-docker.sh scripts must be successful before attempting to run the image.
Without this change, errors while building the Dockerfile are silently ignored.
The tests will then run with the latest version of the test runner image in docker hub, leading to a successful build even though the Dockerfile could not be built.
This PR ensures that building the docker image in the
bin/run-in-docker.sh
andbin/run-tests-in-docker.sh
scripts must be successful before attempting to run the image. Without this change, errors while building the Dockerfile are silently ignored. The tests will then run with the latest version of the test runner image in docker hub, leading to a successful build even though the Dockerfile could not be built.