From ea5ca5745a6c3dfa597a2d7655b96ffdbdef35da Mon Sep 17 00:00:00 2001 From: Scott Hain Date: Thu, 15 Feb 2018 11:55:21 -0800 Subject: Kill any orphaned tests Signed-off-by: Scott Hain --- ci/verify-chef.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/verify-chef.sh b/ci/verify-chef.sh index 528152b3b6..3a9bcf2111 100755 --- a/ci/verify-chef.sh +++ b/ci/verify-chef.sh @@ -8,6 +8,9 @@ export TMPDIR sudo rm -rf $TMPDIR mkdir -p $TMPDIR +# Verify that we kill any orphaned test processes. Kill any orphaned rspec processes. +ps ax | egrep 'rspec' | grep -v grep | awk '{ print $1 }' | xargs sudo kill -s KILL || true + # $PROJECT_NAME is set by Jenkins, this allows us to use the same script to verify # Chef and Angry Chef PATH=/opt/$PROJECT_NAME/bin:$PATH -- cgit v1.2.1