Skip to content

Commit

Permalink
dist: more aggressive docker stop
Browse files Browse the repository at this point in the history
Trying to avoid a second test instance run after the first encountering
an error of the form:
```
Bind for 0.0.0.0:8443 failed: port is already allocated.
```
  • Loading branch information
cpu committed May 2, 2024
1 parent 1e4bb03 commit e974b84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rustls-libssl/dist/test/deb-ubuntu-22/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
set -e
TAG="$1"

docker run --init --interactive --publish 8443:443 "$TAG" &
DOCKER_ID=$!
docker run --interactive --publish 8443:443 "$TAG" &
sleep 2

output_got=$(curl --cacert ca.cert https://localhost:8443/)

kill "$DOCKER_ID"
docker stop "$(docker ps --quiet)"

diff --unified --report-identical-files <(echo "hello world") <(echo "$output_got")

0 comments on commit e974b84

Please sign in to comment.