From a692f5f21176701805c560789eda9dea4e86bae1 Mon Sep 17 00:00:00 2001 From: David Lozano Date: Fri, 16 Jun 2017 10:08:55 +0200 Subject: [PATCH] Exit after test failure --- captain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/captain.go b/captain.go index a2b5034..a0062f3 100644 --- a/captain.go +++ b/captain.go @@ -156,7 +156,7 @@ func Test(opts BuildOptions) { res := execute("bash", "-c", value) if res != nil { err("Test execution returned non-zero status") - return + os.Exit(ExecuteFailed) } } }