test: cli: add information about which test failed
Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
parent
f9adee80f4
commit
3c76a35588
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue