Skip to content

Commit

Permalink
[nextest-runner] close stdin while running list commands
Browse files Browse the repository at this point in the history
No reason to have stdin open for these.
  • Loading branch information
sunshowers committed Nov 8, 2022
1 parent d01b855 commit 6f57459
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nextest-runner/src/list/test_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 6f57459

Please sign in to comment.