Skip to content

Commit 73bca58

Browse files
committed
stabilize ci_rustc_if_unchanged_logic test for local environments
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent efea989 commit 73bca58

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: src/bootstrap/src/core/builder/tests.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,14 @@ fn ci_rustc_if_unchanged_logic() {
261261
// Make sure "if-unchanged" logic doesn't try to use CI rustc while there are changes
262262
// in compiler and/or library.
263263
if config.download_rustc_commit.is_some() {
264+
let mut paths = vec!["compiler"];
265+
266+
if !build_helper::ci::CiEnv::is_ci() {
267+
paths.push(":!library");
268+
}
269+
264270
let has_changes =
265-
config.last_modified_commit(&["compiler", "library"], "download-rustc", true).is_none();
271+
config.last_modified_commit(&paths, "download-rustc", true).is_none();
266272

267273
assert!(
268274
!has_changes,

0 commit comments

Comments
 (0)