Fix tee functionality in Rust unit test wrapper
The output was captured, but not printed to stdout. Additionally, the
check_output method causes an exception when the child fails so the
output was completely lost on test failure.
The revised function forwards the process's stdout to both the
parent's and a buffer.
Color output is also restored.
Bug: 1271215
Change-Id: I11e9873eb44688fc47acc057af391f7cca605505
Cq-Include-Trybots: luci.chromium.try:android-rust-arm32-rel,android-rust-arm64-dbg,android-rust-arm64-rel,linux-rust-x64-dbg,linux-rust-x64-rel,win-rust-x64-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4501262
Reviewed-by: Ćukasz Anforowicz <[email protected]>
Auto-Submit: Collin Baker <[email protected]>
Commit-Queue: Collin Baker <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1138921}
NOKEYCHECK=True
GitOrigin-RevId: 9de05d828b865f7b41de3bd166d06a9d5b24d82b
2 files changed