This commit is contained in:
wxiaoguang
2026-04-25 18:40:17 +08:00
parent 18795df69c
commit 888f4daa31

View File

@@ -47,7 +47,13 @@ func mainTest(m *testing.M, testOptsArg ...*TestOptions) int {
if err != nil {
testlogger.Panicf("TempDir: %v\n", err)
}
defer appDataCleanup()
// FIXME: debug
_, _ = fmt.Fprintf(os.Stderr, "Prepare APP_DATA_PATH for SetupGiteaTestEnv: %s\n", appDataPath)
defer func() {
_, _ = fmt.Fprintf(os.Stderr, "Remove APP_DATA_PATH for SetupGiteaTestEnv: %s\n", appDataPath)
appDataCleanup()
}()
_ = os.Setenv("GITEA_TEST_CONF_CONTENT", `
[server]
APP_DATA_PATH = `+appDataPath+`