Don't run dogfood on windows or in the rustc test suite

This commit is contained in:
Oliver Schneider 2018-01-16 15:26:32 +01:00
parent 9a2c50f3d6
commit 920fc17485

View file

@ -3,6 +3,9 @@ fn dogfood() {
if option_env!("RUSTC_TEST_SUITE").is_some() {
return;
}
if cfg!(windows) {
return;
}
let root_dir = std::env::current_dir().unwrap();
for d in &[".", "clippy_lints"] {
std::env::set_current_dir(root_dir.join(d)).unwrap();