From 2f4163b249bad1bf59c821cbf59c48036971576f Mon Sep 17 00:00:00 2001 From: jguer Date: Mon, 19 Feb 2024 11:33:06 +0100 Subject: [PATCH] chore(yay): fix breaking test --- pkg/runtime/runtime_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/runtime/runtime_test.go b/pkg/runtime/runtime_test.go index e83ce16a..75b88d1e 100644 --- a/pkg/runtime/runtime_test.go +++ b/pkg/runtime/runtime_test.go @@ -4,6 +4,7 @@ package runtime_test import ( + "path/filepath" "testing" "github.com/stretchr/testify/assert" @@ -16,6 +17,11 @@ import ( func TestBuildRuntime(t *testing.T) { t.Parallel() + path := "../../testdata/pacman.conf" + + absPath, err := filepath.Abs(path) + require.NoError(t, err) + // Prepare test inputs cfg := &settings.Configuration{ Debug: true, @@ -24,7 +30,7 @@ func TestBuildRuntime(t *testing.T) { AURRPCURL: "https://aur.archlinux.org/rpc", BuildDir: "/tmp", VCSFilePath: "", - PacmanConf: "../../testdata/pacman.conf", + PacmanConf: absPath, } cmdArgs := parser.MakeArguments() version := "1.0.0"