diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-12 15:13:40 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-12 15:13:40 +0300 |
commit | 6afb9dd3775d7b16110a320c4e1968934ab430d7 (patch) | |
tree | 04e5fa6295b09a2181f3042a7c8108b92b41abf1 /helpers_test.go | |
parent | 9042f5171c4bddc3da330b0e236e5faa78e657c3 (diff) |
Move helpers
Diffstat (limited to 'helpers_test.go')
-rw-r--r-- | helpers_test.go | 21 |
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 + } +} |