Compare commits

..

No commits in common. "316df860296b468158d40a0111fe9cad72d60b6e" and "452ef5f1fa210d29ec8efe14f869ce87bfc52f3c" have entirely different histories.

2 changed files with 2 additions and 17 deletions

View file

@ -1,15 +0,0 @@
package main
import (
"fmt"
"os"
"github.com/marmaduke/testbed2/pkg/cli"
)
func main() {
if err := cli.Run(os.Args[1:]); err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)
}
}

View file

@ -48,13 +48,13 @@ func TestRunOutput(t *testing.T) {
r, w, _ := os.Pipe()
os.Stdout = w
_ = Run([]string{})
Run([]string{})
w.Close()
os.Stdout = oldStdout
buf := new(bytes.Buffer)
_, _ = buf.ReadFrom(r)
buf.ReadFrom(r)
if buf.Len() == 0 {
t.Fatal("expected output")
}