Skip to content

Commit 2e36e0e

Browse files
committed
fix bootstrap tests
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 65ac8ac commit 2e36e0e

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

src/bootstrap/src/core/builder/tests.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -254,19 +254,6 @@ fn ci_rustc_if_unchanged_invalidate_on_compiler_changes() {
254254
});
255255
}
256256

257-
#[test]
258-
fn ci_rustc_if_unchanged_invalidate_on_library_changes_in_ci() {
259-
git_test(|ctx| {
260-
prepare_rustc_checkout(ctx);
261-
ctx.create_upstream_merge(&["compiler/bar"]);
262-
// This change should invalidate download-ci-rustc
263-
ctx.create_nonupstream_merge(&["library/foo"]);
264-
265-
let config = parse_config_download_rustc_at(ctx.get_path(), "if-unchanged", true);
266-
assert_eq!(config.download_rustc_commit, None);
267-
});
268-
}
269-
270257
#[test]
271258
fn ci_rustc_if_unchanged_do_not_invalidate_on_library_changes_outside_ci() {
272259
git_test(|ctx| {

src/bootstrap/src/core/config/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use crate::utils::helpers::{self, exe, output, t};
4545
/// final output/compiler, which can be significantly affected by changes made to the bootstrap sources.
4646
#[rustfmt::skip] // We don't want rustfmt to oneline this list
4747
pub(crate) const RUSTC_IF_UNCHANGED_ALLOWED_PATHS: &[&str] = &[
48-
"!library",
48+
":!library",
4949
":!src/tools",
5050
":!src/librustdoc",
5151
":!src/rustdoc-json-types",

0 commit comments

Comments
 (0)