aboutsummaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-03-20 08:51:58 +0000
committerOmar Polo <op@omarpolo.com>2021-03-20 08:51:58 +0000
commit052c9d240345b1e5b9ef11dbc3b9cb28978cdb89 (patch)
treea645d1a5782c367af9c952fd5af787b8af35f650 /regress
parent1d3eb470b0e5961d74cf202567a0e4c0b57f7f12 (diff)
kill only $pid during regress testing
before we did `pkill gmid', but that would influence also other instances of gmid!
Diffstat (limited to 'regress')
-rwxr-xr-xregress/runtime9
1 files changed, 3 insertions, 6 deletions
diff --git a/regress/runtime b/regress/runtime
index 73ceb93..80bf32c 100755
--- a/regress/runtime
+++ b/regress/runtime
@@ -43,8 +43,7 @@ raw() {
}
run() {
- # filter out logs for GET requests
- (./../gmid -f -c reg.conf 2>&1 | grep -v GET) >&2 &
+ ./../gmid -f -c reg.conf &
pid=$!
# give gmid time to bind the port, otherwise we end up
# executing gg when gmid isn't ready yet.
@@ -61,13 +60,13 @@ check() {
}
restart() {
- pkill -SIGHUP gmid
+ kill -HUP $pid
sleep 1
}
# quit gmid
quit() {
- pkill gmid || true
+ kill $pid || true
wait || true
}
@@ -302,5 +301,3 @@ eq "$(head /)" "61 certificate not authorised" "Unexpected head for /"
echo OK GET / with invalid client certificate
ggflags=''
-
-quit