summaryrefslogtreecommitdiffstats
path: root/helpers/path_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/path_test.go')
-rw-r--r--helpers/path_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/helpers/path_test.go b/helpers/path_test.go
index 9ce61b269..cbdcd8da2 100644
--- a/helpers/path_test.go
+++ b/helpers/path_test.go
@@ -146,6 +146,10 @@ func TestGetRelativePath(t *testing.T) {
}
func TestGetRealPath(t *testing.T) {
+ if runtime.GOOS == "windows" && os.Getenv("CI") == "" {
+ t.Skip("Skip TestGetRealPath as os.Symlink needs administrator rights on Windows")
+ }
+
d1, err := ioutil.TempDir("", "d1")
defer os.Remove(d1)
fs := afero.NewOsFs()