Skip to content
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

Merged
merged 3 commits into from
Feb 18, 2018
Merged

Conversation

jquick
Copy link
Contributor

@jquick jquick commented Feb 16, 2018

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 [email protected]

@jquick jquick requested a review from a team as a code owner February 16, 2018 19:18
Signed-off-by: Jared Quick <[email protected]>
@jquick jquick force-pushed the jq/fix_legacy_reporter_output branch from 651eb33 to e2c29d4 Compare February 16, 2018 19:25
@jquick jquick added the bug label Feb 16, 2018
@jquick jquick changed the title Fix legacy reporter output. Fix legacy reporter output to file Feb 16, 2018
Copy link
Contributor

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jquick


# see if we are using the legacy output to write to files
if opts['output']
opts['format'] = "#{opts['format']}:#{opts['output']}"
Copy link
Contributor

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

Copy link
Contributor Author

@jquick jquick Feb 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added:
screen shot 2018-02-17 at 3 06 54 pm

Signed-off-by: Jared Quick <[email protected]>
@jquick jquick force-pushed the jq/fix_legacy_reporter_output branch from f7c4adc to 272fe85 Compare February 17, 2018 20:27
Copy link
Contributor

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jquick

@chris-rock chris-rock merged commit 97dd054 into master Feb 18, 2018
@chris-rock chris-rock deleted the jq/fix_legacy_reporter_output branch February 18, 2018 11:17
@jquick jquick restored the jq/fix_legacy_reporter_output branch February 18, 2018 13:45
kagarmoe pushed a commit that referenced this pull request Feb 19, 2018
* Fix legacy reporter output.

Signed-off-by: Jared Quick <[email protected]>

* Wrap test in a proc to catch warnings.

Signed-off-by: Jared Quick <[email protected]>

* Add output deprecation.

Signed-off-by: Jared Quick <[email protected]>
@clintoncwolfe clintoncwolfe added Type: Bug Feature not working as expected and removed bug labels Apr 26, 2018
@miah miah deleted the jq/fix_legacy_reporter_output branch May 3, 2019 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support legacy format output
5 participants