fs: fix filename normalization issues in the tests when running on OS X

This commit is contained in:
Nick Craig-Wood
2017-09-17 15:31:22 +01:00
parent 12405f9f41
commit 87335de8a8
3 changed files with 35 additions and 13 deletions
+2 -2
View File
@@ -217,7 +217,7 @@ func winPath(s string) string {
func dirsToNames(dirs []fs.Directory) []string {
names := []string{}
for _, dir := range dirs {
names = append(names, winPath(dir.Remote()))
names = append(names, winPath(fstest.Normalize(dir.Remote())))
}
sort.Strings(names)
return names
@@ -227,7 +227,7 @@ func dirsToNames(dirs []fs.Directory) []string {
func objsToNames(objs []fs.Object) []string {
names := []string{}
for _, obj := range objs {
names = append(names, winPath(obj.Remote()))
names = append(names, winPath(fstest.Normalize(obj.Remote())))
}
sort.Strings(names)
return names