-
Notifications
You must be signed in to change notification settings - Fork 1.4k
improve handling of test output #7126
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
Conversation
motivation: fix cases where test output is formattet incorrectly due to exessive newline addition changes: preserve output from test hartness as-is without attempting to remove oradd newlines
fixes #6566 |
@swift-ci test |
I had a PR ready to go but you beat me to it :) |
@@ -390,7 +390,7 @@ public struct SwiftTestTool: SwiftCommand { | |||
let ranSuccessfully = runner.test(outputHandler: { | |||
// command's result output goes on stdout | |||
// ie "swift test" should output to stdout | |||
print($0) | |||
print($0, terminator: "") |
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.
There is another call site of test(outputHandler
in the repo that needs the same fix.
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.
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.
@grynspan ^^
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.
Woohoo!
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.
Some missing bits.
@swift-ci test |
@swift-ci test windows |
motivation: fix cases where test output is formatted incorrectly due to excessive newline addition
changes: preserve output from test hartness as-is without attempting to remove oradd newlines