You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Kitchen versions that use winrm gem 2.x, when chef-solo exits with a non-zero exit status, kitchen exits with a 20, which is the "unexpected error" exit status. Previous versions of kitchen (< 1.8 for sure, maybe others) returned the "expected error" exit status of 10 for chef-solo errors.
Given the age on this one and a significant amount of fixes on several of the related repos, closing this one out. Please do open a new issue with current versions if still experiencing this behaviour but this works pretty well now.
Description
With Kitchen versions that use winrm gem 2.x, when chef-solo exits with a non-zero exit status, kitchen exits with a
20
, which is the "unexpected error" exit status. Previous versions of kitchen (< 1.8
for sure, maybe others) returned the "expected error" exit status of10
for chef-solo errors.Kitchen Version
1.13.2
Ruby Version
2.3.0
Platform Version
Replication Case
I created b-dean/winrm-issue-229 to reproduce WinRb/WinRM#229 and if you edit the
Gemfile
to saythen the winrm bug is fixed and kitchen has the wrong exit code.
Kitchen Output
Here's the output of running
bundle exec kitchen test -l debug
https://gist.github.com/b-dean/7d7f5798ef9a4f35ab2b3aa67ef63ece#file-default-windows-log
Kitchen Diagnose
https://gist.github.com/b-dean/7d7f5798ef9a4f35ab2b3aa67ef63ece#file-kitchen-diagnose-yaml
The text was updated successfully, but these errors were encountered: