Don't run dogfood on windows or in the rustc test suite
This commit is contained in:
parent
9a2c50f3d6
commit
920fc17485
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,9 @@ fn dogfood() {
|
||||||
if option_env!("RUSTC_TEST_SUITE").is_some() {
|
if option_env!("RUSTC_TEST_SUITE").is_some() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if cfg!(windows) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let root_dir = std::env::current_dir().unwrap();
|
let root_dir = std::env::current_dir().unwrap();
|
||||||
for d in &[".", "clippy_lints"] {
|
for d in &[".", "clippy_lints"] {
|
||||||
std::env::set_current_dir(root_dir.join(d)).unwrap();
|
std::env::set_current_dir(root_dir.join(d)).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue