upgrades: run doctor check --all after each upgrade

This commit is contained in:
Twenty Panda 2024-03-17 18:12:41 +01:00
parent 21920b10d9
commit 6bb5e947fb
4 changed files with 13 additions and 0 deletions

View file

@ -3,3 +3,4 @@
FIXTURES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $FIXTURES_DIR/fixtures/storage.sh
source $FIXTURES_DIR/fixtures/doctor.sh

View file

@ -0,0 +1,7 @@
# SPDX-License-Identifier: MIT
function doctor_run() {
local version=$1
forgejo_cli $version doctor check --all # --log-file -
}

View file

@ -7,6 +7,9 @@ HTTP_PORT = 3000
SSH_LISTEN_PORT = 2222
LFS_START_SERVER = true
[queue]
TYPE = immediate
[database]
DB_TYPE = sqlite3
PATH = ${WORK_PATH}/forgejo.db

View file

@ -36,6 +36,7 @@ function test_successful_upgrades() {
start $version
fixture_create
fixture_assert
doctor_run $version
for version in 1.19 1.20 1.21 $RELEASE_NUMBERS_AND_DEV ; do
stop
@ -43,6 +44,7 @@ function test_successful_upgrades() {
start $version
verify_storage
fixture_assert
doctor_run $version
done
done
}