From 8c5a5b6bce1c846279aa8fb215d6b412ca134338 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Tue, 26 Jul 2022 15:20:10 +0800 Subject: Fix QR test screwing up terminal --- tests/qrcode.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/qrcode.rs b/tests/qrcode.rs index 21dae6a..32d9438 100644 --- a/tests/qrcode.rs +++ b/tests/qrcode.rs @@ -11,6 +11,8 @@ use std::time::Duration; #[cfg(not(windows))] fn run_in_faketty_kill_and_get_stdout(template: &Command) -> Result { + use std::process::Stdio; + use fake_tty::{bash_command, get_stdout}; let cmd = { @@ -22,7 +24,7 @@ fn run_in_faketty_kill_and_get_stdout(template: &Command) -> Result