fix: upgrades: do not hardcode versions
- upgrading v7.0 to v7.0 is a noop - pprof testing lags behind
This commit is contained in:
parent
d68ee49e3b
commit
f537340c93
2 changed files with 10 additions and 10 deletions
|
|
@ -28,15 +28,13 @@ function test_forgejo_pprof() {
|
|||
docker run --name test_pyroscope --rm -d -p 4040:4040 code.forgejo.org/oci/pyroscope:1.12.0
|
||||
|
||||
reset_forgejo $UPGRADE_DIR/default-app.ini
|
||||
log_info "run 7.0"
|
||||
start 7.0
|
||||
test_upload_profiles
|
||||
stop
|
||||
|
||||
log_info "run 9.0"
|
||||
start 9.0
|
||||
test_upload_profiles
|
||||
stop
|
||||
for version in $RELEASE_NUMBERS; do
|
||||
log_info "run $version"
|
||||
start $version
|
||||
test_upload_profiles
|
||||
stop
|
||||
done
|
||||
|
||||
docker stop test_pyroscope
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,9 @@ function test_successful_upgrades() {
|
|||
log_info "using $config"
|
||||
upgrade_reset $config
|
||||
|
||||
version=7.0
|
||||
set $RELEASE_NUMBERS
|
||||
version="$1"
|
||||
shift
|
||||
log_info "run $version"
|
||||
cleanup_storage
|
||||
start $version
|
||||
|
|
@ -38,7 +40,7 @@ function test_successful_upgrades() {
|
|||
fixture_assert
|
||||
doctor_run $config
|
||||
|
||||
for version in $RELEASE_NUMBERS; do
|
||||
for version in $@; do
|
||||
stop
|
||||
log_info "run $version"
|
||||
start $version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue