test: No longer accumulate orphans on each test run (#7978)

Stop producing orphans and `No such container: boulder_tests` on each
test invocation.
This commit is contained in:
Samantha Frank 2025-01-24 16:28:58 -05:00 committed by GitHub
parent dbb248eba6
commit 8ab022e8c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 10 deletions

7
t.sh
View File

@ -10,9 +10,6 @@ if type realpath >/dev/null 2>&1 ; then
fi
# Generate the test keys and certs necessary for the integration tests.
docker compose run bsetup
docker compose run --rm 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 || true
exec docker compose run --name boulder_tests boulder ./test.sh "$@"
exec docker compose run --rm --name boulder_tests boulder ./test.sh "$@"

7
tn.sh
View File

@ -10,9 +10,6 @@ if type realpath >/dev/null 2>&1 ; then
fi
# Generate the test keys and certs necessary for the integration tests.
docker compose run bsetup
docker compose run --rm 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 || true
exec docker compose -f docker-compose.yml -f docker-compose.next.yml run boulder ./test.sh "$@"
exec docker compose -f docker-compose.yml -f docker-compose.next.yml run --rm --name boulder_tests boulder ./test.sh "$@"