Skip to content

Commit

Permalink
Add a way to skip the use_the_cli test for rust repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Sep 4, 2018
1 parent b714d42 commit e29aacc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/testsuite/git.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use git2;
use std::env;
use std::fs::{self, File};
use std::io::prelude::*;
use std::net::{TcpListener, TcpStream};
Expand Down Expand Up @@ -2575,6 +2576,12 @@ fn failed_submodule_checkout() {

#[test]
fn use_the_cli() {
if env::var("CARGO_TEST_DISABLE_GIT_CLI") == Ok("1".to_string()) {
// mingw git on Windows does not support Windows-style file URIs.
// Appveyor in the rust repo has that git up front in the PATH instead
// of Git-for-Windows, which causes this to fail.
return;
}
let project = project();
let git_project = git::new("dep1", |project| {
project
Expand Down

0 comments on commit e29aacc

Please sign in to comment.