collect the pid of the server on startup, and kill it on shutdown

This commit is contained in:
Greg Gauthier 2020-10-10 18:00:00 +01:00
parent 7bdb1712b9
commit 428150e81f

View File

@ -2,5 +2,6 @@
python3 -m pip install pipenv python3 -m pip install pipenv
pipenv run ./install.sh pipenv run ./install.sh
pipenv run python3 app/simple.py & pipenv run python3 app/simple.py & PID=$!
pipenv run python3 -m pytest tests/test_hov.py --verbose --show-capture=all pipenv run python3 -m pytest tests/test_hov.py --verbose --show-capture=all
kill -9 $PID