diff options
-rw-r--r-- | lib/leap_cli/commands/test.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb index 7e80be7..962053d 100644 --- a/lib/leap_cli/commands/test.rb +++ b/lib/leap_cli/commands/test.rb @@ -13,8 +13,12 @@ module LeapCli; module Commands end manager.filter!(args).names_in_test_dependency_order.each do |node_name| node = manager.nodes[node_name] - ssh_connect(node) do |ssh| - ssh.run(test_cmd(options)) + begin + ssh_connect(node) do |ssh| + ssh.run(test_cmd(options)) + end + rescue Capistrano::CommandError => exc + bail! unless options[:continue] end end end |