mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-23 18:04:09 +00:00
Fix breaking test cases on unix platform
Rename platform parameter file to agnostic name. Both darwin and linux can share the same paramters.
This commit is contained in:
parent
bffe4baf42
commit
8df88496e2
1 changed files with 4 additions and 3 deletions
|
@ -1,13 +1,14 @@
|
||||||
|
// +build linux,darwin
|
||||||
package source
|
package source
|
||||||
|
|
||||||
//
|
//
|
||||||
// NOTE, any changes here need to be reflected in filesystem_windows_test.go
|
// NOTE, any changes here need to be reflected in filesystem_windows_test.go
|
||||||
//
|
//
|
||||||
var platformBase = "foo/bar/boo/"
|
var platformBase = "/base/"
|
||||||
var platformPaths = []TestPath{
|
var platformPaths = []TestPath{
|
||||||
{"foobar", "foobar", "aaa", "", ""},
|
{"foobar", "foobar", "aaa", "", ""},
|
||||||
{"b/1file", "1file", "aaa", "b", "b/"},
|
{"b/1file", "1file", "aaa", "b", "b/"},
|
||||||
{"c/d/2file", "2file", "aaa", "d", "c/d/"},
|
{"c/d/2file", "2file", "aaa", "d", "c/d/"},
|
||||||
{"/e/f/3file", "3file", "aaa", "f", "e/f/"},
|
{"/base/e/f/3file", "3file", "aaa", "f", "e/f/"},
|
||||||
{"section\\foo.rss", "foo.rss", "aaa", "section", "section/"},
|
{"section/foo.rss", "foo.rss", "aaa", "section", "section/"},
|
||||||
}
|
}
|
Loading…
Reference in a new issue