Fix helpers test: SimpleHTTPServer was python2 only, use http.server for python3/bullseye

This commit is contained in:
Alexandre Aubin 2021-06-07 16:31:39 +02:00
parent 7b7595c476
commit 8e25895cbf

View file

@ -35,7 +35,7 @@ trap cleanup EXIT SIGINT
HTTPSERVER_DIR=$(mktemp -d)
HTTPSERVER_PORT=1312
pushd "$HTTPSERVER_DIR" >/dev/null
python -m SimpleHTTPServer $HTTPSERVER_PORT &>/dev/null &
python3 -m http.server $HTTPSERVER_PORT --bind 127.0.0.1 &>/dev/null &
HTTPSERVER="$!"
popd >/dev/null