Skip to content

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

Merged
merged 2 commits into from
Nov 29, 2023
Merged

improve handling of test output #7126

merged 2 commits into from
Nov 29, 2023

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Nov 27, 2023

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

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
@tomerd
Copy link
Contributor Author

tomerd commented Nov 27, 2023

fixes #6566

@tomerd
Copy link
Contributor Author

tomerd commented Nov 27, 2023

@swift-ci test

@grynspan
Copy link
Contributor

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: "")
Copy link
Contributor

@grynspan grynspan Nov 28, 2023

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Woohoo!

Copy link
Contributor

@grynspan grynspan left a comment

Choose a reason for hiding this comment

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

Some missing bits.

@tomerd
Copy link
Contributor Author

tomerd commented Nov 28, 2023

@swift-ci test

@tomerd tomerd enabled auto-merge (squash) November 28, 2023 21:58
@tomerd
Copy link
Contributor Author

tomerd commented Nov 28, 2023

@swift-ci test windows

@tomerd tomerd merged commit 2564e41 into swiftlang:main Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants