Skip to content

Commit 9e6c7af

Browse files
authored
Suggest ./x test src/tools/clippy --bless when in rust-lang/rust (#14507)
changelog: none
2 parents 7d3d824 + 9172556 commit 9e6c7af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: tests/compile-test.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ impl TestContext {
147147
.map(|filters| filters.split(',').map(str::to_string).collect())
148148
.unwrap_or_default(),
149149
target: None,
150-
bless_command: Some("cargo uibless".into()),
150+
bless_command: Some(if IS_RUSTC_TEST_SUITE {
151+
"./x test src/tools/clippy --bless".into()
152+
} else {
153+
"cargo uibless".into()
154+
}),
151155
out_dir: target_dir.join("ui_test"),
152156
..Config::rustc(Path::new("tests").join(test_dir))
153157
};

0 commit comments

Comments
 (0)