mirror of
https://github.com/wassname/talk.git
synced 2026-07-26 13:37:38 +08:00
Let MAX_RETRIES be customizable
This commit is contained in:
+3
-2
@@ -3,7 +3,8 @@
|
||||
CIRCLE_TEST_REPORTS=${CIRCLE_TEST_REPORTS:-./test/e2e/reports}
|
||||
CIRCLE_BRANCH=${CIRCLE_BRANCH:-master}
|
||||
|
||||
MAX_RETRIES=1
|
||||
# Amount of retries before failure.
|
||||
MAX_RETRIES=${MAX_RETRIES:-1}
|
||||
|
||||
# Safari >= 8 has issues connecting to browserstack-local. Safari < 8 is too old.
|
||||
BROWSERS="chrome firefox ie edge" #safari
|
||||
@@ -33,7 +34,7 @@ if [[ "${CIRCLE_BRANCH}" == "master" ]]; then
|
||||
echo "-- Failed e2e for $1 #$try --"
|
||||
|
||||
# Try again of MAX_RETRIES is not reached.
|
||||
if [ "$try" -lt $MAX_RETRIES ]; then
|
||||
if [ "$try" -lt "$MAX_RETRIES" ]; then
|
||||
let try=try+1
|
||||
browserstack "$1" "$try"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user