run_tests.sh: print pid if killing tp fails

This commit is contained in:
rofl0r 2020-09-06 17:20:06 +01:00
parent ab27e4c68b
commit 55208eb2f6

View File

@ -105,11 +105,12 @@ start_tinyproxy() {
stop_tinyproxy() {
echo -n "killing tinyproxy..."
kill $(cat $TINYPROXY_PID_FILE)
pid=$(cat $TINYPROXY_PID_FILE)
kill $pid
if test "x$?" = "x0" ; then
echo " ok"
else
echo " error"
echo " error killing pid $pid"
fi
}