From 3c76a355888d5ffb1b39b7cabd00e31ff3c5879e Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Sat, 14 Jan 2017 18:00:59 +1100 Subject: [PATCH] test: cli: add information about which test failed Signed-off-by: Aleksa Sarai --- test/cli.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cli.go b/test/cli.go index 286dd7f..df5a686 100644 --- a/test/cli.go +++ b/test/cli.go @@ -17,10 +17,11 @@ func main() { cmd.Stdout = os.Stdout if err := cmd.Run(); err != nil { failed++ + fmt.Fprintf(os.Stderr, "FAILED: %s\n", arg) } } if failed > 0 { - fmt.Printf("%d FAILED tests\n", failed) + fmt.Fprintf(os.Stderr, "%d FAILED tests\n", failed) os.Exit(1) } }