@@ -100,7 +100,7 @@ pub struct TestAll {
100100 #[ clap( short = 'p' , long = "svd2rust-path" , default_value = default_svd2rust( ) ) ]
101101 pub current_bin_path : PathBuf ,
102102 #[ clap( last = true ) ]
103- pub command : Option < Vec < String > > ,
103+ pub passthrough_opts : Option < Vec < String > > ,
104104 // TODO: Specify smaller subset of tests? Maybe with tags?
105105 // TODO: Compile svd2rust?
106106}
@@ -149,7 +149,7 @@ pub struct Test {
149149 #[ clap( short = 'p' , long = "svd2rust-path" , default_value = default_svd2rust( ) ) ]
150150 pub current_bin_path : PathBuf ,
151151 #[ clap( last = true ) ]
152- pub command : Option < Vec < String > > ,
152+ pub passthrough_opts : Option < Vec < String > > ,
153153}
154154
155155impl Test {
@@ -191,7 +191,7 @@ impl Test {
191191 . ok_or_else ( || anyhow:: anyhow!( "no test found for chip" ) ) ?
192192 . to_owned ( )
193193 } ;
194- test. test ( opts, & self . current_bin_path , & self . command ) ?;
194+ test. test ( opts, & self . current_bin_path , & self . passthrough_opts ) ?;
195195 Ok ( ( ) )
196196 }
197197}
@@ -247,7 +247,7 @@ impl TestAll {
247247 tests. par_iter ( ) . for_each ( |t| {
248248 let start = Instant :: now ( ) ;
249249
250- match t. test ( opt, & self . current_bin_path , & self . command ) {
250+ match t. test ( opt, & self . current_bin_path , & self . passthrough_opts ) {
251251 Ok ( s) => {
252252 if let Some ( stderrs) = s {
253253 let mut buf = String :: new ( ) ;
0 commit comments