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 'helpers_test.go')
-rw-r--r--helpers_test.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/helpers_test.go b/helpers_test.go
new file mode 100644
index 00000000..5d564891
--- /dev/null
+++ b/helpers_test.go
@@ -0,0 +1,21 @@
+package main
+
+import (
+ "log"
+ "os"
+)
+
+var chdirSet = false
+
+func setUpTests() {
+ if chdirSet {
+ return
+ }
+
+ err := os.Chdir("shared/pages")
+ if err != nil {
+ log.Println("Chdir:", err)
+ } else {
+ chdirSet = true
+ }
+}