Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/acceptance/helpers_test.go')
-rw-r--r--test/acceptance/helpers_test.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/test/acceptance/helpers_test.go b/test/acceptance/helpers_test.go
index c8852976..b8181dca 100644
--- a/test/acceptance/helpers_test.go
+++ b/test/acceptance/helpers_test.go
@@ -367,8 +367,7 @@ func contains(slice []string, s string) bool {
}
func getPagesDaemonArgs(t *testing.T) []string {
- mode := os.Getenv("TEST_DAEMONIZE")
- if mode == "" {
+ if !(*daemonize) {
return nil
}
@@ -380,17 +379,6 @@ func getPagesDaemonArgs(t *testing.T) []string {
out := []string{}
- switch mode {
- case "tmpdir":
- out = append(out, "-daemon-inplace-chroot=false")
- case "inplace":
- out = append(out, "-daemon-inplace-chroot=true")
- default:
- t.Log("Unknown daemonize mode", mode)
- t.FailNow()
- return nil
- }
-
t.Log("Running pages as a daemon")
// This triggers the drop-privileges-and-chroot code in the pages daemon