]> git.lizzy.rs Git - rust.git/commitdiff
Don't run dogfood tests in the rustc test suite
authorOliver Schneider <git-no-reply-9879165716479413131@oli-obk.de>
Thu, 18 Jan 2018 21:02:58 +0000 (22:02 +0100)
committerOliver Schneider <git-no-reply-9879165716479413131@oli-obk.de>
Thu, 18 Jan 2018 21:02:58 +0000 (22:02 +0100)
tests/dogfood.rs

index 1514383e6de459f168bca0398eb72120bf42a6f2..8ca9b5c92a4c3f485ae6dfebdcb3656f8591e82a 100644 (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();