[UPGRADE] run sanity checks before the database is upgraded

https://codeberg.org/forgejo/forgejo/pulls/1543
(cherry picked from commit fbb71f464b)
(cherry picked from commit 650f849c84)
(cherry picked from commit 25e0d33dfe)
(cherry picked from commit 222b70e504)
(cherry picked from commit 4be04627a7)
(cherry picked from commit 64fcb25de3)
(cherry picked from commit 740943d6b0)
(cherry picked from commit 3c096abf11)
(cherry picked from commit da04dcb099)
(cherry picked from commit b881d83f1c)
(cherry picked from commit 7e7492b996)
(cherry picked from commit 869edd3b0a)
(cherry picked from commit d96fbda274)
(cherry picked from commit 09c00cbd00)
(cherry picked from commit 10a1bf8122)
This commit is contained in:
Earl Warren 2023-10-02 17:09:09 +02:00
parent 7a1c9fa236
commit 2eb223c0f6
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -3,7 +3,6 @@
package forgejo
import (
"path/filepath"
"testing"
"code.gitea.io/gitea/models/unittest"
@ -14,7 +13,5 @@ import (
)
func TestMain(m *testing.M) {
unittest.MainTest(m, &unittest.TestOptions{
GiteaRootPath: filepath.Join("..", ".."),
})
unittest.MainTest(m)
}