Files
backy/tests/files_test.go
Andrew Woodlee 2824f8c703
Some checks failed
ci/woodpecker/push/go-lint Pipeline failed
inject ssh env vars by apppending them to the script
2025-12-08 10:08:44 -06:00

16 lines
312 B
Go

package tests
import (
"fmt"
"os/exec"
"testing"
)
func TestRunCommandFileTest(t *testing.T) {
filePath := "packageCommands.yml"
cmdLineStr := fmt.Sprintf("go run ../backy.go exec host -c checkDockerNoVersion -m localhost --cmdStdOut -f %s", filePath)
exec.Command("bash", "-c", cmdLineStr).Output()
}