diff options
| author | Philipp Krones <hello@philkrones.com> | 2025-02-20 21:23:38 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2025-02-28 23:27:22 +0100 |
| commit | a6a78e13e2b79d9f93e7a2d1a914ff9a6c0cb3ba (patch) | |
| tree | 45afcf8e410f1c2c1ca94b132af04549e213304f /tests | |
| parent | fe01c4499507fc6ba21e07ff9824c14443b308e9 (diff) | |
| download | rust-a6a78e13e2b79d9f93e7a2d1a914ff9a6c0cb3ba.tar.gz rust-a6a78e13e2b79d9f93e7a2d1a914ff9a6c0cb3ba.zip | |
Clippy: skip check_host_compiler check in rustc testsuite
This test only makes sense to run in the Clippy repo In the Rust repo the name of the host_compiler is dev, not nightly
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/versioncheck.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/versioncheck.rs b/tests/versioncheck.rs index ea540d48a2b..f6fc2354ca0 100644 --- a/tests/versioncheck.rs +++ b/tests/versioncheck.rs @@ -93,6 +93,11 @@ fn check_that_clippy_has_the_same_major_version_as_rustc() { #[test] fn check_host_compiler() { + // do not run this test inside the upstream rustc repo: + if option_env!("RUSTC_TEST_SUITE").is_some() { + return; + } + let version = rustc_tools_util::get_version_info!(); assert_eq!(version.host_compiler, Some("nightly".to_string())); } |
