Skip to content

Commit 746ae36

Browse files
committed
Only run shell scrip tests on Unix
1 parent d6dcf5b commit 746ae36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cred.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ mod test {
467467

468468
#[test]
469469
fn credential_helper4() {
470+
if cfg!(windows) { return } // shell scripts don't work on Windows
471+
470472
let td = TempDir::new("git2-rs").unwrap();
471473
let path = td.path().join("script");
472474
File::create(&path).unwrap().write(br"\
@@ -488,6 +490,7 @@ echo username=c
488490

489491
#[test]
490492
fn credential_helper5() {
493+
if cfg!(windows) { return } // shell scripts don't work on Windows
491494
let td = TempDir::new("git2-rs").unwrap();
492495
let path = td.path().join("git-credential-script");
493496
File::create(&path).unwrap().write(br"\
@@ -524,6 +527,7 @@ echo username=c
524527

525528
#[test]
526529
fn credential_helper7() {
530+
if cfg!(windows) { return } // shell scripts don't work on Windows
527531
let td = TempDir::new("git2-rs").unwrap();
528532
let path = td.path().join("script");
529533
File::create(&path).unwrap().write(br"\

0 commit comments

Comments
 (0)