-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
squash SSH failure when skippable true and exception message matches expected #1579
Conversation
Signed-off-by: Vern Burton <[email protected]>
Signed-off-by: Vern Burton <[email protected]>
Signed-off-by: Vern Burton <[email protected]>
@tas50 - I have fixed the merge conflict as well as a future issue with the lacking of 2.6.2 ruby in Pipelines which will affect all future testing. |
Could you bring this back up to date @tarcinil , so we can get it merged in? |
Signed-off-by: Vern Burton <[email protected]>
Signed-off-by: Vern Burton <[email protected]>
@marcparadise I have updated my PR. I didn't create any tests because of the nature of the change, but it can be tested via CLI. In the master, when you perform a
If you perform the same steps against my changes, it is handled cleanly when skippable is true. It will fail to the above error if skippable is not added to the remote command.
|
This will still run the command and output the failure, but when Kitchen::Transport:Ssh::Connection#execute has an error code that isn't zero, it causes the issue seen in #1543.
This will allow lifecycle_hooks to squash the expception if skipable is true and the message matches what we expect from the raise in the transport. It will just re-raise the original exception otherwise.
fixes #1543