diff options
| author | onur-ozkan <work@onurozkan.dev> | 2024-02-14 19:10:49 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2024-02-14 19:10:49 +0300 |
| commit | 0925ff8300ed724f1a1760c0bedd7522f49b3203 (patch) | |
| tree | cd5d9c05cb3771aba362cc131dfd06e1f0cdb24f | |
| parent | bc1b9e0e9a813d27a09708b293dc2d41c472f0d0 (diff) | |
| download | rust-0925ff8300ed724f1a1760c0bedd7522f49b3203.tar.gz rust-0925ff8300ed724f1a1760c0bedd7522f49b3203.zip | |
use build.rustc config and skip-stage0-validation flag
This change helps us to bypass downloading the beta compiler in bootstrap tests. Signed-off-by: onur-ozkan <work@onurozkan.dev>
| -rw-r--r-- | src/bootstrap/src/core/config/tests.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/bootstrap/src/core/config/tests.rs b/src/bootstrap/src/core/config/tests.rs index 0ae466eca7d..6ac573c68df 100644 --- a/src/bootstrap/src/core/config/tests.rs +++ b/src/bootstrap/src/core/config/tests.rs @@ -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] |
