From d4b6d29b0981b7b79c06a73165ea938c522acb78 Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 8 Dec 2014 13:46:29 -0800 Subject: leap test --continue will continue on to the next node. closes #6497 --- lib/leap_cli/commands/test.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/leap_cli/commands') 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 -- cgit v1.2.3