From a1b4aa2ae60d215e38c6871fae690e34964a27d7 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 26 Apr 2022 14:46:49 -0400 Subject: fix(test): capture inherited stdout and stderr for subprocesses in test output (#14395) --- cli/lsp/testing/execution.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/lsp/testing/execution.rs') diff --git a/cli/lsp/testing/execution.rs b/cli/lsp/testing/execution.rs index 93f3d9ba3..6f90e60a3 100644 --- a/cli/lsp/testing/execution.rs +++ b/cli/lsp/testing/execution.rs @@ -760,9 +760,8 @@ impl test::TestReporter for LspTestReporter { .and_then(|v| v.last().map(|td| td.into())) }); let value = match output { - test::TestOutput::PrintStdout(value) - | test::TestOutput::PrintStderr(value) => value.replace('\n', "\r\n"), - test::TestOutput::Stdout(bytes) | test::TestOutput::Stderr(bytes) => { + test::TestOutput::String(value) => value.replace('\n', "\r\n"), + test::TestOutput::Bytes(bytes) => { String::from_utf8_lossy(bytes).replace('\n', "\r\n") } }; -- cgit v1.2.3