Skip to content

Commit

Permalink
ci(integration): kill servers softly
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed Jun 24, 2024
1 parent 0b5d245 commit 53efda0
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions tests/integration/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,19 @@ echo ''
echo '#'
echo '# Stopping PHP webserver and disabling spreedcheats'
echo '#'
kill $PHPPID1
kill $PHPPID2

wait $PHPPID1
wait $PHPPID2
if ps --pid ${PHPPID1} > /dev/null; then
kill ${PHPPID1}
fi
if ps --pid ${PHPPID2} > /dev/null; then
kill ${PHPPID2}
fi

if ps --pid ${PHPPID1} > /dev/null; then
wait ${PHPPID1}
fi
if ps --pid ${PHPPID2} > /dev/null; then
wait ${PHPPID2} || true
fi

exit $RESULT

0 comments on commit 53efda0

Please sign in to comment.