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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-02-12 15:13:40 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-02-12 15:13:40 +0300
commit6afb9dd3775d7b16110a320c4e1968934ab430d7 (patch)
tree04e5fa6295b09a2181f3042a7c8108b92b41abf1 /helpers_test.go
parent9042f5171c4bddc3da330b0e236e5faa78e657c3 (diff)
Move helpers
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
+ }
+}