Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
Adds test to make sure SIGTERM reaches KMS
Browse files Browse the repository at this point in the history
  • Loading branch information
thanethomson committed Jan 25, 2019
1 parent d514276 commit 9649982
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/support/run-harness-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ if ps -p ${TMKMS_PID} > /dev/null
then
echo "Killing KMS (pid ${TMKMS_PID})"
kill ${TMKMS_PID}
# Wait a few seconds for KMS to die properly.
# NOTE: This also acts as a test of the KMS listening for and properly
# responding to the SIGTERM signal from `kill`.
sleep 3
# Make sure KMS has actually stopped properly now.
if ps -p ${TMKMS_PID} > /dev/null
then
echo "Failed to stop KMS!"
exit 100
fi
else
echo "KMS (pid ${TMKMS_PID}) already stopped, not killing"
fi
Expand Down

0 comments on commit 9649982

Please sign in to comment.