trap and kill BrowserStackLocal process in selenium_test script

This commit is contained in:
dandds 2018-10-15 10:15:29 -04:00
parent 4e653a52cf
commit 8a14560a9b

View File

@ -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"