From eeaaee696d3a73810036c17c539a45f20c8bf695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Wed, 29 Nov 2023 17:31:08 +0100 Subject: [PATCH] Use absolute paths --- end-to-end/main_test.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/end-to-end/main_test.go b/end-to-end/main_test.go index 5a43182c6..bc818648b 100644 --- a/end-to-end/main_test.go +++ b/end-to-end/main_test.go @@ -120,7 +120,11 @@ func usePrebuiltProject(buildPath string) (err error) { if err != nil { return fmt.Errorf("could not locate MSIX: %v", err) } - msixPath = result + + msixPath, err = filepath.Abs(result) + if err != nil { + return fmt.Errorf("could not make MSIX path absolute: %v", err) + } // Locate WSL-Pro-Service (it'll be installed later into the distros) path, err := globSingleResult(filepath.Join(buildPath, "wsl-pro-service", "wsl-pro-service_*.deb")) @@ -128,7 +132,10 @@ func usePrebuiltProject(buildPath string) (err error) { return fmt.Errorf("could not locate WSL-Pro-Service: %v", err) } - debPkgPath = path + debPkgPath, err = filepath.Abs(path) + if err != nil { + return fmt.Errorf("could not make debian package path absolute: %v", err) + } return nil }