test: bail if bsetup fails (#7518)

This commit is contained in:
Jacob Hoffman-Andrews 2024-05-31 14:10:15 -07:00 committed by GitHub
parent 6b4577ecc4
commit 12e8b0ce21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

6
t.sh
View File

@ -3,14 +3,16 @@
# Outer wrapper for invoking test.sh inside docker-compose.
#
set -o errexit
if type realpath >/dev/null 2>&1 ; then
cd "$(realpath -- $(dirname -- "$0"))"
fi
# Generate the test keys and certs necessary for the integration tests.
docker compose up bsetup
docker compose run bsetup
# Use a predictable name for the container so we can grab the logs later
# for use when testing logs analysis tools.
docker rm boulder_tests
docker rm boulder_tests || true
exec docker compose run --name boulder_tests boulder ./test.sh "$@"

6
tn.sh
View File

@ -3,14 +3,16 @@
# Outer wrapper for invoking test.sh with config-next inside docker-compose.
#
set -o errexit
if type realpath >/dev/null 2>&1 ; then
cd "$(realpath -- $(dirname -- "$0"))"
fi
# Generate the test keys and certs necessary for the integration tests.
docker compose up bsetup
docker compose run bsetup
# Use a predictable name for the container so we can grab the logs later
# for use when testing logs analysis tools.
docker rm boulder_tests
docker rm boulder_tests || true
exec docker compose -f docker-compose.yml -f docker-compose.next.yml run boulder ./test.sh "$@"