-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6622 from nextcloud/ci/endToEndTests
improving end-to-end tests
- Loading branch information
Showing
2 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
# SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors | ||
# SPDX-FileCopyrightText: 2019-2020 Tobias Kaminsky <[email protected]> | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
counter=0 | ||
status="" | ||
|
||
until [[ $status = "false" ]]; do | ||
status=$(curl 2>/dev/null "http://$1/status.php" | jq .maintenance) | ||
|
||
echo "($counter) $status" | ||
|
||
if [[ "$status" =~ "false" || "$status" = "" ]]; then | ||
let "counter += 1" | ||
if [[ $counter -gt 90 ]]; then | ||
echo "Failed to wait for server" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
sleep 10 | ||
done | ||
|