fix abs path with symlinks

Signed-off-by: Nestor <nesterran@gmail.com>
This commit is contained in:
Nestor
2019-02-22 15:08:26 +01:00
parent 70719a8f65
commit 1eab47b63f
3 changed files with 31 additions and 3 deletions

View File

@@ -27,7 +27,11 @@ import (
func makeTestDir(t *testing.T) (FileSystem, string) {
x := MakeRealFS()
testDir, err := ioutil.TempDir("", "kustomize_testing_dir")
td, err := ioutil.TempDir("", "kustomize_testing_dir")
if err != nil {
t.Fatalf("unexpected error %s", err)
}
testDir, err := filepath.EvalSymlinks(td)
if err != nil {
t.Fatalf("unexpected error %s", err)
}