Update workDir of e2e binary to eval symlinks

Due to a recent update to OS X, this is necessary
so that the correct working directory is saved,
so that methods like Path() on the e2e binary
will return the correct value
This commit is contained in:
Pam Selle 2020-09-08 13:46:20 -04:00
parent a176aaa4da
commit 880546bd66
1 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,11 @@ func NewBinary(binaryPath, workingDir string) *binary {
panic(err) panic(err)
} }
tmpDir, err = filepath.EvalSymlinks(tmpDir)
if err != nil {
panic(err)
}
// For our purposes here we do a very simplistic file copy that doesn't // For our purposes here we do a very simplistic file copy that doesn't
// attempt to preserve file permissions, attributes, alternate data // attempt to preserve file permissions, attributes, alternate data
// streams, etc. Since we only have to deal with our own fixtures in // streams, etc. Since we only have to deal with our own fixtures in