From 4d4d20edb9e08175bc3898eadc0261a692f1dc8b Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 23 Sep 2015 09:37:04 -0700 Subject: [PATCH] build(travis): block travis while we are shutting down the tunnel This is to prevent Travis from prematurely shut down the VM while we are still waiting for the sauce connect client to tear down the tunnel. Closes #4335 --- scripts/sauce/sauce_connect_teardown.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/sauce/sauce_connect_teardown.sh b/scripts/sauce/sauce_connect_teardown.sh index cd57a233be..72155b9cfd 100755 --- a/scripts/sauce/sauce_connect_teardown.sh +++ b/scripts/sauce/sauce_connect_teardown.sh @@ -4,4 +4,13 @@ set -e -o pipefail echo "Shutting down Sauce Connect tunnel" + killall sc + +while [[ -n `ps -ef | grep "bin/sc" | grep -v "grep"` ]]; do + printf "." + sleep .5 +done + +echo "" +echo "Sauce Connect tunnel has been shut down"