diff --git a/commands/cli/parse_test.go b/commands/cli/parse_test.go index 196c4b3d941..a1a23dc6527 100644 --- a/commands/cli/parse_test.go +++ b/commands/cli/parse_test.go @@ -4,6 +4,7 @@ import ( "io" "io/ioutil" "os" + "path/filepath" "runtime" "strings" "testing" @@ -287,6 +288,15 @@ func TestArgumentParsing(t *testing.T) { if err != nil { t.Fatal(err) } + fn, err := filepath.EvalSymlinks(f.Name()) + if err != nil { + t.Fatal(err) + } + f.Close() + f, err = os.Create(fn) + if err != nil { + t.Fatal(err) + } return f }