Skip to content

Commit

Permalink
change the way finding the just built compose binary
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
  • Loading branch information
glours committed Dec 21, 2022
1 parent 86a648b commit 518874e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/e2e/framework.go
Expand Up @@ -159,8 +159,11 @@ func dirContents(dir string) []string {
}

func findExecutable(executableName string) (string, error) {
_, filename, _, _ := runtime.Caller(0)
root := filepath.Join(filepath.Dir(filename), "..", "..")
filename, err := os.Getwd()
if err != nil {
return "", err
}
root := filepath.Join(filepath.Dir(filename), "..")
buildPath := filepath.Join(root, "bin", "build")

bin, err := filepath.Abs(filepath.Join(buildPath, executableName))
Expand Down

0 comments on commit 518874e

Please sign in to comment.