Fix upgrade_test failure.
authorMicah Anderson <micah@riseup.net>
Tue, 4 Jul 2017 19:00:20 +0000 (12:00 -0700)
committerMicah Anderson <micah@riseup.net>
Tue, 4 Jul 2017 19:00:20 +0000 (12:00 -0700)
See https://0xacab.org/leap/platform/-/jobs/14029 for an example.

tests/platform-ci/ci-build.sh

index 9332c12..1c9cc41 100755 (executable)
@@ -146,7 +146,8 @@ upgrade_test() {
   # Checkout stable branch containing last release
   # and deploy this
   cd "$PLATFORMDIR"
-  git remote add leap https://leap.se/git/leap_platform
+  # due to cache, this remote is sometimes already added
+  git remote add leap https://leap.se/git/leap_platform || true
   git fetch leap
   git checkout -b leap_stable remotes/leap/stable
   # After checking out a different platform branch