mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-22 08:25:38 +00:00
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
|
cmd.Stdout = os.Stdout
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
failed++
|
failed++
|
||||||
|
fmt.Fprintf(os.Stderr, "FAILED: %s\n", arg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if failed > 0 {
|
if failed > 0 {
|
||||||
fmt.Printf("%d FAILED tests\n", failed)
|
fmt.Fprintf(os.Stderr, "%d FAILED tests\n", failed)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue