Files
Tianon Gravi df287691b2 Adjust nextcloud tests to avoid flakiness
This adjusts `nextcloud-apache-run` and `nextcloud-fpm-run` to try up to three times for a successful result, and adds a new `nextcloud-cli` test that combines the other three (`nextcloud-cli-mysql`, `nextcloud-cli-postgres`, and `nextcloud-cli-sqlite`) into a single test that will pass if any one of them passes (but does attempt to run all three every time).

Also, account for change in the installation page (from "Finish setup" to "Install").
2022-02-03 16:47:50 -08:00

23 lines
443 B
Bash
Executable File

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