Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit cd37ed0

Browse files
authored
Merge pull request #110 from jrlusby/isolate-env
Dont pass RUST_LOG to rustc subprocess in tests
2 parents b4efcd3 + 1d92033 commit cd37ed0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ failure = "0.1.1"
2424
log = "0.4.1"
2525

2626
[dev-dependencies]
27-
duct = "0.8.2"
27+
duct = "0.9"
2828
env_logger = "0.5.0-rc.1"
2929
log = "0.4.1"
3030
tempdir = "0.3.5"

tests/parse_and_replace.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ extern crate difference;
1313

1414
use std::collections::HashSet;
1515
use std::ffi::OsString;
16+
use std::fs;
1617
use std::path::{Path, PathBuf};
1718
use std::process::Output;
18-
use std::fs;
1919

2020
use failure::{Error, ResultExt};
2121
use tempdir::TempDir;
@@ -54,6 +54,7 @@ fn compile(file: &Path, mode: &str) -> Result<Output, Error> {
5454

5555
let res = duct::cmd("rustc", &args)
5656
.env("CLIPPY_DISABLE_DOCS_LINKS", "true")
57+
.env_remove("RUST_LOG")
5758
.stdout_capture()
5859
.stderr_capture()
5960
.unchecked()

0 commit comments

Comments
 (0)