@@ -77,10 +77,6 @@ pub fn parse_config(args: Vec<String> ) -> Config {
7777 optopt( "" , "target-rustcflags" , "flags to pass to rustc for target" , "FLAGS" ) ,
7878 optflag( "" , "verbose" , "run tests verbosely, showing all output" ) ,
7979 optopt( "" , "logfile" , "file to log test execution to" , "FILE" ) ,
80- optopt( "" , "save-metrics" , "file to save metrics to" , "FILE" ) ,
81- optopt( "" , "ratchet-metrics" , "file to ratchet metrics against" , "FILE" ) ,
82- optopt( "" , "ratchet-noise-percent" ,
83- "percent change in metrics to consider noise" , "N" ) ,
8480 optflag( "" , "jit" , "run tests under the JIT" ) ,
8581 optopt( "" , "target" , "the target to build for" , "TARGET" ) ,
8682 optopt( "" , "host" , "the host to build for" , "HOST" ) ,
@@ -90,7 +86,6 @@ pub fn parse_config(args: Vec<String> ) -> Config {
9086 optopt( "" , "adb-path" , "path to the android debugger" , "PATH" ) ,
9187 optopt( "" , "adb-test-dir" , "path to tests for the android debugger" , "PATH" ) ,
9288 optopt( "" , "lldb-python-dir" , "directory containing LLDB's python module" , "PATH" ) ,
93- optopt( "" , "test-shard" , "run shard A, of B shards, worth of the testsuite" , "A.B" ) ,
9489 optflag( "h" , "help" , "show this message" ) ) ;
9590
9691 assert ! ( !args. is_empty( ) ) ;
@@ -152,12 +147,6 @@ pub fn parse_config(args: Vec<String> ) -> Config {
152147 filter : filter,
153148 cfail_regex : Regex :: new ( errors:: EXPECTED_PATTERN ) . unwrap ( ) ,
154149 logfile : matches. opt_str ( "logfile" ) . map ( |s| Path :: new ( s) ) ,
155- save_metrics : matches. opt_str ( "save-metrics" ) . map ( |s| Path :: new ( s) ) ,
156- ratchet_metrics :
157- matches. opt_str ( "ratchet-metrics" ) . map ( |s| Path :: new ( s) ) ,
158- ratchet_noise_percent :
159- matches. opt_str ( "ratchet-noise-percent" )
160- . and_then ( |s| s. as_slice ( ) . parse :: < f64 > ( ) ) ,
161150 runtool : matches. opt_str ( "runtool" ) ,
162151 host_rustcflags : matches. opt_str ( "host-rustcflags" ) ,
163152 target_rustcflags : matches. opt_str ( "target-rustcflags" ) ,
@@ -176,7 +165,6 @@ pub fn parse_config(args: Vec<String> ) -> Config {
176165 opt_str2 ( matches. opt_str ( "adb-test-dir" ) ) . as_slice ( ) &&
177166 !opt_str2 ( matches. opt_str ( "adb-test-dir" ) ) . is_empty ( ) ,
178167 lldb_python_dir : matches. opt_str ( "lldb-python-dir" ) ,
179- test_shard : test:: opt_shard ( matches. opt_str ( "test-shard" ) ) ,
180168 verbose : matches. opt_present ( "verbose" ) ,
181169 }
182170}
@@ -210,10 +198,6 @@ pub fn log_config(config: &Config) {
210198 logv ( c, format ! ( "adb_test_dir: {:?}" , config. adb_test_dir) ) ;
211199 logv ( c, format ! ( "adb_device_status: {}" ,
212200 config. adb_device_status) ) ;
213- match config. test_shard {
214- None => logv ( c, "test_shard: (all)" . to_string ( ) ) ,
215- Some ( ( a, b) ) => logv ( c, format ! ( "test_shard: {}.{}" , a, b) )
216- }
217201 logv ( c, format ! ( "verbose: {}" , config. verbose) ) ;
218202 logv ( c, format ! ( "\n " ) ) ;
219203}
@@ -284,15 +268,8 @@ pub fn test_opts(config: &Config) -> test::TestOpts {
284268 logfile : config. logfile . clone ( ) ,
285269 run_tests : true ,
286270 run_benchmarks : true ,
287- ratchet_metrics : config. ratchet_metrics . clone ( ) ,
288- ratchet_noise_percent : config. ratchet_noise_percent . clone ( ) ,
289- save_metrics : config. save_metrics . clone ( ) ,
290- test_shard : config. test_shard . clone ( ) ,
291271 nocapture : false ,
292272 color : test:: AutoColor ,
293- show_boxplot : false ,
294- boxplot_width : 50 ,
295- show_all_stats : false ,
296273 }
297274}
298275
0 commit comments