mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 07:35:48 -05:00
chore(yay): fix breaking test
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user