Skip to content

[Driver] Inject per-instance stdout/stderr streams#2137

Open
cachemeifyoucan wants to merge 1 commit into
swiftlang:mainfrom
cachemeifyoucan:eng/PR-177157368
Open

[Driver] Inject per-instance stdout/stderr streams#2137
cachemeifyoucan wants to merge 1 commit into
swiftlang:mainfrom
cachemeifyoucan:eng/PR-177157368

Conversation

@cachemeifyoucan
Copy link
Copy Markdown
Contributor

Driver and ToolExecutionDelegate now take a ThreadSafeOutputByteStream for stdout and stderr (defaulting to the TSCBasic globals). TestDriver defaults to per-instance in-memory buffers, so parallel tests no longer race by reassigning TSCBasic.stderrStream / stdoutStream while printOutputFileMap and the parseable-output tests run.

rdar://177157368

Driver and ToolExecutionDelegate now take a ThreadSafeOutputByteStream
for stdout and stderr (defaulting to the TSCBasic globals). TestDriver
defaults to per-instance in-memory buffers, so parallel tests no longer
race by reassigning TSCBasic.stderrStream / stdoutStream while
printOutputFileMap and the parseable-output tests run.

rdar://177157368
@cachemeifyoucan
Copy link
Copy Markdown
Contributor Author

@swift-ci please test

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.

1 participant