diff options
author | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2022-07-22 16:46:55 +0000 |
---|---|---|
committer | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2022-08-22 10:51:17 +0000 |
commit | 3c0d0cfffe6a647ff91bd74ebe0c3085032fc646 (patch) | |
tree | 043fb3b297829b8818b9af5144728e1835535ab1 /tests | |
parent | Use `mime` for content type (diff) | |
download | miniserve-3c0d0cfffe6a647ff91bd74ebe0c3085032fc646.tar.gz miniserve-3c0d0cfffe6a647ff91bd74ebe0c3085032fc646.zip |
Disable broken tests for Windows
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qrcode.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/qrcode.rs b/tests/qrcode.rs index eb37abc..21dae6a 100644 --- a/tests/qrcode.rs +++ b/tests/qrcode.rs @@ -9,6 +9,7 @@ use std::process::Command; use std::thread::sleep; use std::time::Duration; +#[cfg(not(windows))] fn run_in_faketty_kill_and_get_stdout(template: &Command) -> Result<String, Error> { use fake_tty::{bash_command, get_stdout}; @@ -33,6 +34,8 @@ fn run_in_faketty_kill_and_get_stdout(template: &Command) -> Result<String, Erro } #[rstest] +// Disabled for Windows because `fake_tty` does not currently support it. +#[cfg(not(windows))] fn qrcode_hidden_in_tty_when_disabled(tmpdir: TempDir, port: u16) -> Result<(), Error> { let mut template = Command::cargo_bin("miniserve")?; template.arg("-p").arg(port.to_string()).arg(tmpdir.path()); @@ -44,6 +47,8 @@ fn qrcode_hidden_in_tty_when_disabled(tmpdir: TempDir, port: u16) -> Result<(), } #[rstest] +// Disabled for Windows because `fake_tty` does not currently support it. +#[cfg(not(windows))] fn qrcode_shown_in_tty_when_enabled(tmpdir: TempDir, port: u16) -> Result<(), Error> { let mut template = Command::cargo_bin("miniserve")?; template |