summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-06 17:20:06 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-06 17:20:06 +0100
commit55208eb2f6f3ffdc4b76d50d1dc804a4d72f3532 (patch)
tree8cc50eb3456a4d5d4b9e2221d522afde31f3d06c
parentab27e4c68b8a5cf89e8534f3a5011083c558139a (diff)
run_tests.sh: print pid if killing tp fails
-rwxr-xr-xtests/scripts/run_tests.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh
index 6f797ef..14575f8 100755
--- a/tests/scripts/run_tests.sh
+++ b/tests/scripts/run_tests.sh
@@ -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
}