ci(yay): add integration test framework (#2178)

* add integration test framework

* fix integration tests

* fix integration tests
This commit is contained in:
Jo
2023-05-22 23:38:02 +02:00
committed by GitHub
parent 39f0d4e9a1
commit fdcf6ef664
36 changed files with 218 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
//go:build !integration
// +build !integration
package main
import (
@@ -27,7 +30,7 @@ import (
func TestPrintUpdateList(t *testing.T) {
// The current method of capturing os.Stdout hinders parallelization.
// Setting of global settings.NoConfirm in printUpdateList also hinders parallelization.
//t.Parallel()
// t.Parallel()
pacmanBin := t.TempDir() + "/pacman"
f, err := os.OpenFile(pacmanBin, os.O_RDONLY|os.O_CREATE, 0o755)
require.NoError(t, err)