mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2026-02-23 10:32:24 +00:00
Fix test to reflect new filename.
This commit is contained in:
parent
90d6c1c39e
commit
85fe267c5d
|
|
@ -20,7 +20,7 @@ func contains(arr []string, element string) bool {
|
|||
// Writes a message to STDERR and exits with status 1.
|
||||
func exitOnError(format string, arg ...any) {
|
||||
fmt.Fprintln(os.Stderr, fmt.Errorf(format+"\n", arg...))
|
||||
fmt.Println("Usage: apt_query.go normalized-list <package names>")
|
||||
fmt.Println("Usage: apt_query normalized-list <package names>")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ type RunResult struct {
|
|||
func run(t *testing.T, command string, pkgNames ...string) RunResult {
|
||||
stdout := &bytes.Buffer{}
|
||||
stderr := &bytes.Buffer{}
|
||||
cmd := exec.Command("go", append([]string{"run", "apt_query.go", command}, pkgNames...)...)
|
||||
cmd := exec.Command("go", append([]string{"run", "main.go", command}, pkgNames...)...)
|
||||
cmd.Stdout = stdout
|
||||
cmd.Stderr = stderr
|
||||
err := cmd.Run()
|
||||
|
|
|
|||
Loading…
Reference in a new issue