Skip to content

Commit

Permalink
use build.rustc config and skip-stage0-validation flag
Browse files Browse the repository at this point in the history
This change helps us to bypass downloading the beta compiler in bootstrap tests.

Signed-off-by: onur-ozkan <[email protected]>
  • Loading branch information
onur-ozkan committed Feb 14, 2024
1 parent bc1b9e0 commit 0925ff8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/bootstrap/src/core/config/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ use std::{
};

fn parse(config: &str) -> Config {
Config::parse_inner(&["check".to_owned(), "--config=/does/not/exist".to_owned()], |&_| {
toml::from_str(config).unwrap()
})
let config = format!("{config} \r\n build.rustc = \"/does-not-exists\" ");
Config::parse_inner(
&[
"check".to_owned(),
"--config=/does/not/exist".to_owned(),
"--skip-stage0-validation".to_owned(),
],
|&_| toml::from_str(&config).unwrap(),
)
}

#[test]
Expand Down

0 comments on commit 0925ff8

Please sign in to comment.