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

Support TAP output for CI #790

Merged
merged 2 commits into from
Jul 24, 2018
Merged

Support TAP output for CI #790

merged 2 commits into from
Jul 24, 2018

Conversation

schneems
Copy link
Contributor

@schneems schneems commented Jul 9, 2018

The TAP specification says that there should be no whitespace in front of output. The pipe command auto indents output so that it looks correct with the build output.

This PR adds the ability to specify the object that is used for puts. We can pass in the Kernel object to force it to not indent output.

Related support ticket: 605130

schneems added 2 commits July 24, 2018 11:40
The TAP specification says that there should be no whitespace in front of output. The `pipe` command auto indents output so that it looks correct with the build output.

This PR adds the ability to specify the object that is used for puts. We can pass in the `Kernel` object to force it to not indent output.

Related support ticket: 605130
@schneems schneems force-pushed the schneems/support-TAP-ci-output branch from 41c18bf to c290668 Compare July 24, 2018 16:40
# having no whitespace before output. To avoid adding whitespace
# for the original Kernel.puts to be used by passing in the
# Kernel object.
pipe(command, :user_env => true, :output_object => Kernel)
Copy link
Member

Choose a reason for hiding this comment

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

do we want to indent by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By default we want the indent or this code change would be much larger. We're depending on the indent for the output to look correct when we do things like bundle install on a normal build.

@schneems schneems merged commit cb101b9 into master Jul 24, 2018
@edmorley edmorley deleted the schneems/support-TAP-ci-output branch August 27, 2020 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants