Add error checking for CI tests
This commit is contained in:
parent
b2846ea49d
commit
baece5eeb3
1 changed files with 6 additions and 0 deletions
|
@ -468,10 +468,16 @@ func main() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foundError := false
|
||||||
for _, f := range []func() error{env.Prepare, env.RunTests, env.Teardown} {
|
for _, f := range []func() error{env.Prepare, env.RunTests, env.Teardown} {
|
||||||
err := f()
|
err := f()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
foundError = true
|
||||||
fmt.Fprintf(os.Stderr, "error: %v\n", err)
|
fmt.Fprintf(os.Stderr, "error: %v\n", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if foundError {
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue