@@ -59,26 +59,19 @@ pub fn run_tests(env: &Environment) -> anyhow::Result<()> {
59
59
. join ( format ! ( "llvm-config{}" , executable_extension( ) ) ) ;
60
60
assert ! ( llvm_config. is_file( ) ) ;
61
61
62
- let config_content = format ! (
63
- r#"profile = "user"
64
- change-id = 115898
62
+ let profile = "profile=user" ;
63
+ let rustc = format ! ( "build.rustc={}" , rustc_path. to_string( ) . replace( '\\' , "/" ) ) ;
64
+ let cargo = format ! ( "build.cargo={}" , cargo_path. to_string( ) . replace( '\\' , "/" ) ) ;
65
+ let llvm_config =
66
+ format ! ( "target.{host_triple}.llvm-config={}" , llvm_config. to_string( ) . replace( '\\' , "/" ) ) ;
65
67
66
- [build]
67
- rustc = "{rustc}"
68
- cargo = "{cargo}"
69
-
70
- [target.{host_triple}]
71
- llvm-config = "{llvm_config}"
72
- "# ,
73
- rustc = rustc_path. to_string( ) . replace( '\\' , "/" ) ,
74
- cargo = cargo_path. to_string( ) . replace( '\\' , "/" ) ,
75
- llvm_config = llvm_config. to_string( ) . replace( '\\' , "/" )
76
- ) ;
77
- log:: info!( "Using following `config.toml` for running tests:\n {config_content}" ) ;
68
+ log:: info!( "Set the following configurations for running tests:" ) ;
69
+ log:: info!( "\t {profile}" ) ;
70
+ log:: info!( "\t {rustc}" ) ;
71
+ log:: info!( "\t {cargo}" ) ;
72
+ log:: info!( "\t {llvm_config}" ) ;
78
73
79
74
// Simulate a stage 0 compiler with the extracted optimized dist artifacts.
80
- std:: fs:: write ( "config.toml" , config_content) ?;
81
-
82
75
let x_py = env. checkout_path ( ) . join ( "x.py" ) ;
83
76
let mut args = vec ! [
84
77
env. python_binary( ) ,
@@ -97,6 +90,14 @@ llvm-config = "{llvm_config}"
97
90
"tests/run-pass-valgrind" ,
98
91
"tests/ui" ,
99
92
"tests/crashes" ,
93
+ "--set" ,
94
+ & profile,
95
+ "--set" ,
96
+ & rustc,
97
+ "--set" ,
98
+ & cargo,
99
+ "--set" ,
100
+ & llvm_config,
100
101
] ;
101
102
for test_path in env. skipped_tests ( ) {
102
103
args. extend ( [ "--skip" , test_path] ) ;
0 commit comments