Skip to content

Commit 22209fd

Browse files
authored
Merge pull request GitoxideLabs#1644 from EliahKagan/run-ci/ptyprocess-targets
Only run expectrl gix-prompt tests where supported
2 parents db5c9cf + 9f7b34a commit 22209fd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

gix-prompt/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ parking_lot = "0.12.1"
2727
[dev-dependencies]
2828
gix-testtools = { path = "../tests/tools" }
2929
serial_test = { version = "3.1.0", default-features = false }
30+
31+
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))'.dev-dependencies]
3032
expectrl = "0.7.0"

gix-prompt/tests/prompt.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mod ask {
3434
}
3535

3636
#[test]
37-
#[cfg(unix)]
37+
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))]
3838
fn askpass_only() {
3939
let mut cmd = std::process::Command::new(env!("CARGO"));
4040
cmd.args(["build", "--example", "use-askpass", "--example", "askpass"]);
@@ -48,7 +48,7 @@ mod ask {
4848
}
4949

5050
#[test]
51-
#[cfg(unix)]
51+
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))]
5252
fn username_password() {
5353
let mut cmd = std::process::Command::new(env!("CARGO"));
5454
cmd.args(["build", "--example", "credentials"]);
@@ -65,7 +65,7 @@ mod ask {
6565
}
6666

6767
#[test]
68-
#[cfg(not(unix))]
68+
#[cfg(not(any(target_os = "linux", target_os = "freebsd", target_os = "macos")))]
6969
#[ignore]
7070
fn username_password_not_available() {}
7171
}

0 commit comments

Comments
 (0)