Skip to content

Commit 1e87aa1

Browse files
committed
debug
Signed-off-by: onur-ozkan <[email protected]>
1 parent 47c978e commit 1e87aa1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use super::*;
66
use crate::Flags;
77
use crate::core::build_steps::doc::DocumentationFormat;
88
use crate::core::config::Config;
9+
use crate::core::download::is_download_ci_available;
910

1011
fn configure(cmd: &str, host: &[&str], target: &[&str]) -> Config {
1112
configure_with_args(&[cmd.to_owned()], host, target)
@@ -216,12 +217,6 @@ fn alias_and_path_for_library() {
216217

217218
#[test]
218219
fn ci_rustc_if_unchanged_logic() {
219-
if env::var_os("NO_DOWNLOAD_CI_RUSTC").is_some_and(|s| s == "1" || s == "true") {
220-
// FIXME: Find the actual reason.
221-
println!("This test is incompatible in runners configured with `NO_DOWNLOAD_CI_RUSTC`.");
222-
return;
223-
}
224-
225220
let config = Config::parse_inner(
226221
Flags::parse(&[
227222
"build".to_owned(),
@@ -231,6 +226,10 @@ fn ci_rustc_if_unchanged_logic() {
231226
|&_| Ok(Default::default()),
232227
);
233228

229+
if !is_download_ci_available(&config.build.triple, config.llvm_assertions) {
230+
return;
231+
}
232+
234233
if config.rust_info.is_from_tarball() {
235234
return;
236235
}
@@ -263,7 +262,9 @@ fn ci_rustc_if_unchanged_logic() {
263262
.unwrap()
264263
.success();
265264

266-
assert!(has_changes == config.download_rustc_commit.is_none());
265+
if config.download_rustc_commit.is_some() {
266+
assert!(!has_changes);
267+
}
267268
}
268269

269270
mod defaults {

0 commit comments

Comments
 (0)