From 880546bd662a00eba17c2f341ad7dda3bc388b2d Mon Sep 17 00:00:00 2001 From: Pam Selle <204372+pselle@users.noreply.github.com> Date: Tue, 8 Sep 2020 13:46:20 -0400 Subject: [PATCH] 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 --- e2e/e2e.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e2e/e2e.go b/e2e/e2e.go index 56655911c..cde417ebf 100644 --- a/e2e/e2e.go +++ b/e2e/e2e.go @@ -37,6 +37,11 @@ func NewBinary(binaryPath, workingDir string) *binary { 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 // attempt to preserve file permissions, attributes, alternate data // streams, etc. Since we only have to deal with our own fixtures in