From 6f57459e62993ce246482e142500bd0532845a48 Mon Sep 17 00:00:00 2001 From: Rain Date: Mon, 7 Nov 2022 14:51:43 -0800 Subject: [PATCH] [nextest-runner] close stdin while running list commands No reason to have stdin open for these. --- nextest-runner/src/list/test_list.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nextest-runner/src/list/test_list.rs b/nextest-runner/src/list/test_list.rs index 034a0246a69..95e12c129e2 100644 --- a/nextest-runner/src/list/test_list.rs +++ b/nextest-runner/src/list/test_list.rs @@ -690,8 +690,9 @@ impl<'g> RustTestArtifact<'g> { &self.package, &self.non_test_binaries, ); - // Capture stdout and stderr. + // Capture stdout and stderr, and close stdin. cmd.command_mut() + .stdin(std::process::Stdio::null()) .stdout(std::process::Stdio::piped()) .stderr(std::process::Stdio::piped());