File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/bootstrap/src/core/config Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -174,12 +174,14 @@ fn override_toml_duplicate() {
174
174
#[ test]
175
175
fn profile_user_dist ( ) {
176
176
fn get_toml ( file : & Path ) -> TomlConfig {
177
- let contents = if file. ends_with ( "config.toml" ) {
178
- "profile = \" user\" " . to_owned ( )
179
- } else {
180
- assert ! ( file. ends_with( "config.dist.toml" ) ) ;
181
- std:: fs:: read_to_string ( file) . unwrap ( )
182
- } ;
177
+ let contents =
178
+ if file. ends_with ( "config.toml" ) || env:: var_os ( "RUST_BOOTSTRAP_CONFIG" ) . is_some ( ) {
179
+ "profile = \" user\" " . to_owned ( )
180
+ } else {
181
+ assert ! ( file. ends_with( "config.dist.toml" ) ) ;
182
+ std:: fs:: read_to_string ( file) . unwrap ( )
183
+ } ;
184
+
183
185
toml:: from_str ( & contents)
184
186
. and_then ( |table : toml:: Value | TomlConfig :: deserialize ( table) )
185
187
. unwrap ( )
You can’t perform that action at this time.
0 commit comments