-
Notifications
You must be signed in to change notification settings - Fork 680
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
Fix legacy reporter output to file #2667
Conversation
Signed-off-by: Jared Quick <jquick@chef.io>
651eb33
to
e2c29d4
Compare
Signed-off-by: Jared Quick <jquick@chef.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @jquick
lib/inspec/base_cli.rb
Outdated
|
||
# see if we are using the legacy output to write to files | ||
if opts['output'] | ||
opts['format'] = "#{opts['format']}:#{opts['output']}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should print that this is deprecated and will be removed in inspec 3.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Jared Quick <jquick@chef.io>
f7c4adc
to
272fe85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @jquick
* Fix legacy reporter output. Signed-off-by: Jared Quick <jquick@chef.io> * Wrap test in a proc to catch warnings. Signed-off-by: Jared Quick <jquick@chef.io> * Add output deprecation. Signed-off-by: Jared Quick <jquick@chef.io>
This fixes the issue with test-kitchen when trying to output the results to a file. That use to use the old rspec file writer but now it set to use the new format.
Fixes #2656
Signed-off-by: Jared Quick jquick@chef.io