summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--integrations/integration_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/integrations/integration_test.go b/integrations/integration_test.go
index 88b4614b76..a0271ce6bf 100644
--- a/integrations/integration_test.go
+++ b/integrations/integration_test.go
@@ -14,6 +14,7 @@ import (
"net/http/cookiejar"
"net/url"
"os"
+ "path"
"strings"
"testing"
@@ -63,9 +64,11 @@ func initIntegrationTest() {
fmt.Println("Environment variable $GITEA_CONF not set")
os.Exit(1)
}
- if os.Getenv("GITEA_ROOT") == "" {
+ if giteaRoot := os.Getenv("GITEA_ROOT"); giteaRoot == "" {
fmt.Println("Environment variable $GITEA_ROOT not set")
os.Exit(1)
+ } else {
+ setting.AppPath = path.Join(giteaRoot, "gitea")
}
setting.NewContext()