mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix helpers test: SimpleHTTPServer was python2 only, use http.server for python3/bullseye
This commit is contained in:
parent
7b7595c476
commit
8e25895cbf
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ trap cleanup EXIT SIGINT
|
||||||
HTTPSERVER_DIR=$(mktemp -d)
|
HTTPSERVER_DIR=$(mktemp -d)
|
||||||
HTTPSERVER_PORT=1312
|
HTTPSERVER_PORT=1312
|
||||||
pushd "$HTTPSERVER_DIR" >/dev/null
|
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="$!"
|
HTTPSERVER="$!"
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue