about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2025-03-31 17:30:19 +0000
committerGitHub <noreply@github.com>2025-03-31 17:30:19 +0000
commit9e6c7af4baf753054970a5f984b8956f338dc346 (patch)
treefe60300d246b9f31581cc4673a153722f9eb3d2d
parent7d3d824d648e80023c0245f55afdc66d5f51a821 (diff)
parent9172556de8db2ea7041073215936ba27b3395622 (diff)
downloadrust-9e6c7af4baf753054970a5f984b8956f338dc346.tar.gz
rust-9e6c7af4baf753054970a5f984b8956f338dc346.zip
Suggest `./x test src/tools/clippy --bless` when in `rust-lang/rust` (#14507)
changelog: none
-rw-r--r--tests/compile-test.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/compile-test.rs b/tests/compile-test.rs
index a9ba382daf2..ea93ced8a86 100644
--- a/tests/compile-test.rs
+++ b/tests/compile-test.rs
@@ -147,7 +147,11 @@ impl TestContext {
                 .map(|filters| filters.split(',').map(str::to_string).collect())
                 .unwrap_or_default(),
             target: None,
-            bless_command: Some("cargo uibless".into()),
+            bless_command: Some(if IS_RUSTC_TEST_SUITE {
+                "./x test src/tools/clippy --bless".into()
+            } else {
+                "cargo uibless".into()
+            }),
             out_dir: target_dir.join("ui_test"),
             ..Config::rustc(Path::new("tests").join(test_dir))
         };