From 518874e939db13c6292bdb2a963d7a6f8f6e28db Mon Sep 17 00:00:00 2001 From: Guillaume Lours <705411+glours@users.noreply.github.com> Date: Wed, 21 Dec 2022 19:27:03 +0100 Subject: [PATCH] change the way finding the just built compose binary Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com> --- pkg/e2e/framework.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/e2e/framework.go b/pkg/e2e/framework.go index c7dacaef710..4e067a4b50d 100644 --- a/pkg/e2e/framework.go +++ b/pkg/e2e/framework.go @@ -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))