chore(yay): fix breaking test

This commit is contained in:
jguer
2024-02-19 11:33:06 +01:00
parent d2ef061d85
commit 2f4163b249

View File

@@ -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"