Skip to content

Commit 072e64c

Browse files
authored
Merge pull request #6410 from stewartmiles/fix_local_pypi_server_startup
Fix pypi-server startup (it now requires `--welcome`).
2 parents 861b3c6 + d28f37b commit 072e64c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

run-tests.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,13 @@ echo "$ git submodule sync && git submodule update --init --recursive"
5151

5252
git submodule sync && git submodule update --init --recursive
5353

54-
echo "pipenv run pypi-server run -v --host=0.0.0.0 --port=8080 --hash-algo=sha256 --disable-fallback ./tests/pypi/ ./tests/fixtures &"
55-
56-
pipenv run pypi-server run -v --host=0.0.0.0 --port=8080 --hash-algo=sha256 --disable-fallback ./tests/pypi/ ./tests/fixtures &
54+
readonly RUN_PYPI_SERVER="\
55+
pipenv run pypi-server run -v --host=0.0.0.0 --port=8080 --hash-algo=sha256 \
56+
--disable-fallback ./tests/pypi/ ./tests/fixtures --welcome /dev/null"
57+
echo "${RUN_PYPI_SERVER} &"
58+
eval "${RUN_PYPI_SERVER} &"
59+
PYPI_SERVER_PID=$!
60+
trap "kill ${PYPI_SERVER_PID}" SIGINT SIGTERM EXIT
5761

5862
echo "$pipenv run pytest -v -ra -n auto --cov-config pyproject.toml --fulltrace tests"
5963

0 commit comments

Comments
 (0)