Don't run dogfood tests in the rustc test suite

This commit is contained in:
Oliver Schneider 2018-01-18 22:02:58 +01:00
parent cdd643842f
commit 10c96e50c3
No known key found for this signature in database
GPG Key ID: 1D5CB4FC597C3004

View File

@ -1,5 +1,8 @@
#[test]
fn dogfood() {
if option_env!("RUSTC_TEST_SUITE").is_some() {
return;
}
let root_dir = std::env::current_dir().unwrap();
for d in &[".", "clippy_lints"] {
std::env::set_current_dir(root_dir.join(d)).unwrap();