From 8080b79d1dddef331e4295e14ce8a8ccdc0f608f Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 22 Dec 2017 08:07:20 -0800 Subject: [PATCH] Forcibly remove CARGO_HTTP_CHECK_REVOKE when testing This'll tweak error messages and cause tests to fail --- tests/cargotest/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/cargotest/lib.rs b/tests/cargotest/lib.rs index e809ba3f4e6..db7b9020edf 100644 --- a/tests/cargotest/lib.rs +++ b/tests/cargotest/lib.rs @@ -55,6 +55,11 @@ fn _process(t: &OsStr) -> cargo::util::ProcessBuilder { // can switch this to one and then fix the tests. .env("CARGO_INCREMENTAL", "0") + // This env var can switch the git backend from libgit2 to git2-curl, which + // can tweak error messages and cause some tests to fail, so let's forcibly + // remove it. + .env_remove("CARGO_HTTP_CHECK_REVOKE") + .env_remove("__CARGO_DEFAULT_LIB_METADATA") .env_remove("RUSTC") .env_remove("RUSTDOC")