This commit is contained in:
wxiaoguang
2026-04-25 20:38:51 +08:00
parent e86d62e497
commit 9294e969b0
2 changed files with 5 additions and 4 deletions

View File

@@ -64,8 +64,9 @@ func SetupGiteaTestEnv() {
CustomConf = customConfBuiltin
_ = os.Remove(CustomConf)
} else {
// CustomConf must be absolute path to make tests pass,
CustomConf = filepath.Join(AppWorkPath, giteaConf)
// CustomConf must be absolute path to make tests pass.
// At the moment, GITEA_TEST_CONF is always in Gitea's source root
CustomConf = filepath.Join(*giteaTestSourceRoot, giteaConf)
}
return giteaConf
}