From a8d2af84f284e87dce377f4e6c163abc7cf6dd43 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 9 Dec 2014 21:03:49 -0800 Subject: exit 1 if `leap test --continue` fails anywhere. closes #6519 --- lib/leap_cli/commands/test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/leap_cli/commands/test.rb') diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb index 962053d..73207b3 100644 --- a/lib/leap_cli/commands/test.rb +++ b/lib/leap_cli/commands/test.rb @@ -18,7 +18,11 @@ module LeapCli; module Commands ssh.run(test_cmd(options)) end rescue Capistrano::CommandError => exc - bail! unless options[:continue] + if options[:continue] + exit_status(1) + else + bail! + end end end end -- cgit v1.2.3