Skip to content
Snippets Groups Projects
Commit 61d8d9e0 authored by elijah's avatar elijah
Browse files

Bug: allow `leap test --continue` to run on additional nodes if there was an...

Bug: allow `leap test --continue` to run on additional nodes if there was an ssh error. closes #8811
parent c7657bcb
No related branches found
No related tags found
1 merge request!118Bug: allow `leap test --continue` to run on additional nodes if there was an ssh…
...@@ -35,7 +35,7 @@ module LeapCli; module Commands ...@@ -35,7 +35,7 @@ module LeapCli; module Commands
SSH::remote_command(node, options) do |ssh, host| SSH::remote_command(node, options) do |ssh, host|
ssh.stream(test_cmd(options), :raise_error => true, :log_wrap => true) ssh.stream(test_cmd(options), :raise_error => true, :log_wrap => true)
end end
rescue LeapCli::SSH::ExecuteError rescue LeapCli::SSH::TimeoutError, SSHKit::Runner::ExecuteError, SSHKit::Command::Failed
if options[:continue] if options[:continue]
exit_status(1) exit_status(1)
else else
......
...@@ -178,7 +178,7 @@ module LeapCli ...@@ -178,7 +178,7 @@ module LeapCli
rescue StandardError => exc rescue StandardError => exc
if exc.is_a?(SSHKit::Command::Failed) || exc.is_a?(SSHKit::Runner::ExecuteError) if exc.is_a?(SSHKit::Command::Failed) || exc.is_a?(SSHKit::Runner::ExecuteError)
if @options[:raise_error] if @options[:raise_error]
raise LeapCli::SSH::ExecuteError, exc.to_s raise exc
elsif @options[:fail_msg] elsif @options[:fail_msg]
@logger.log(@options[:fail_msg], host: @host.hostname, :color => :red) @logger.log(@options[:fail_msg], host: @host.hostname, :color => :red)
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment