diff options
| author | elijah <elijah@riseup.net> | 2014-12-08 13:46:29 -0800 | 
|---|---|---|
| committer | elijah <elijah@riseup.net> | 2014-12-08 13:46:29 -0800 | 
| commit | d4b6d29b0981b7b79c06a73165ea938c522acb78 (patch) | |
| tree | 7f8d3a1fe985f434d820340f2d3a3c2bda4e2d81 | |
| parent | c0c815b62d6ef62764679488de40370b6118c03d (diff) | |
leap test --continue will continue on to the next node. closes #6497
| -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 | 
