run.sh 443 B

12345678910111213141516171819202122
  1. #!/usr/bin/env bash
  2. set -Eeuo pipefail
  3. # the nextcloud tests are very flaky, so the intent of this test is to make sure at least *one* of them is succeeding
  4. dir="$(dirname "$BASH_SOURCE")"
  5. tests="$(dirname "$dir")"
  6. ret=1
  7. for t in \
  8. nextcloud-cli-mysql \
  9. nextcloud-cli-postgres \
  10. nextcloud-cli-sqlite \
  11. ; do
  12. if "$tests/$t/run.sh" "$@"; then
  13. ret=0
  14. else
  15. echo >&2 "note: '$t' failed (only fatal if all three do)"
  16. fi
  17. done
  18. exit "$ret"