fix bootstrap tests
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
305890541f
commit
d2a6990122
2 changed files with 1 additions and 14 deletions
|
|
@ -254,19 +254,6 @@ fn ci_rustc_if_unchanged_invalidate_on_compiler_changes() {
|
|||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ci_rustc_if_unchanged_invalidate_on_library_changes_in_ci() {
|
||||
git_test(|ctx| {
|
||||
prepare_rustc_checkout(ctx);
|
||||
ctx.create_upstream_merge(&["compiler/bar"]);
|
||||
// This change should invalidate download-ci-rustc
|
||||
ctx.create_nonupstream_merge(&["library/foo"]);
|
||||
|
||||
let config = parse_config_download_rustc_at(ctx.get_path(), "if-unchanged", true);
|
||||
assert_eq!(config.download_rustc_commit, None);
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ci_rustc_if_unchanged_do_not_invalidate_on_library_changes_outside_ci() {
|
||||
git_test(|ctx| {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ use crate::utils::helpers::{self, exe, output, t};
|
|||
/// final output/compiler, which can be significantly affected by changes made to the bootstrap sources.
|
||||
#[rustfmt::skip] // We don't want rustfmt to oneline this list
|
||||
pub(crate) const RUSTC_IF_UNCHANGED_ALLOWED_PATHS: &[&str] = &[
|
||||
"!library",
|
||||
":!library",
|
||||
":!src/tools",
|
||||
":!src/librustdoc",
|
||||
":!src/rustdoc-json-types",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue