diff options
author | Brad Warren <bmw@users.noreply.github.com> | 2017-10-13 03:00:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-13 03:00:13 +0300 |
commit | 7c1115881012d62c9903c60a0fd57023b641b8d4 (patch) | |
tree | 97aae9407e8ac12ba73bf843fef86fb14f888229 /tests/tox-boulder-integration.sh | |
parent | 232f5a92d193b1b4a955d0d5f2d1ea639215331d (diff) |
Retry failures to start boulder (#5176)
Occasionally a network error prevents Docker from starting boulder causing
Travis tests to fail like it did at
https://travis-ci.org/certbot/certbot/jobs/282923098. This works around the
problem by using travis_retry to try to start boulder again if it fails.
This also moves the logic of waiting for boulder to start into
tests/boulder-fetch.sh so people running integration tests locally can benefit.
Diffstat (limited to 'tests/tox-boulder-integration.sh')
-rwxr-xr-x | tests/tox-boulder-integration.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/tox-boulder-integration.sh b/tests/tox-boulder-integration.sh new file mode 100755 index 000000000..8c8a967fd --- /dev/null +++ b/tests/tox-boulder-integration.sh @@ -0,0 +1,12 @@ +#!/bin/bash -e +# A simple wrapper around tests/boulder-integration.sh that activates the tox +# virtual environment defined by the environment variable TOXENV before running +# integration tests. + +if [ -z "${TOXENV+x}" ]; then + echo "The environment variable TOXENV must be set to use this script!" >&2 + exit 1 +fi + +source .tox/$TOXENV/bin/activate +tests/boulder-integration.sh |