summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Hain <shain@chef.io>2018-02-15 11:55:21 -0800
committerScott Hain <shain@chef.io>2018-02-20 11:59:48 -0800
commitea5ca5745a6c3dfa597a2d7655b96ffdbdef35da (patch)
tree77775f3534ca4932e86f359c8601401a53dee019
parent1b84b4ddf607dfad71edcd4ee602bbb8f36696ec (diff)
downloadchef-ea5ca5745a6c3dfa597a2d7655b96ffdbdef35da.tar.gz
Kill any orphaned testsshain/test_killer
Signed-off-by: Scott Hain <shain@chef.io>
-rwxr-xr-xci/verify-chef.sh3
1 files changed, 3 insertions, 0 deletions
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