From 8a14560a9bada9defb546d7bd9f5f6c96c863260 Mon Sep 17 00:00:00 2001 From: dandds Date: Mon, 15 Oct 2018 10:15:29 -0400 Subject: [PATCH] trap and kill BrowserStackLocal process in selenium_test script --- script/selenium_test | 1 + 1 file changed, 1 insertion(+) diff --git a/script/selenium_test b/script/selenium_test index fcf3515a..1d583397 100755 --- a/script/selenium_test +++ b/script/selenium_test @@ -43,6 +43,7 @@ fi echo "starting BrowserStack local client..." ./$BSL_FILE --key $BROWSERSTACK_TOKEN & BSL_ID=$! +trap "kill $BSL_ID" SIGTERM SIGINT EXIT # run example selenium script that fetches the home page echo "running selenium tests"