File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ struct TestLine {
63
63
pub fn run_cts ( shell : Shell , mut args : Arguments ) -> anyhow:: Result < ( ) > {
64
64
let skip_checkout = args. contains ( "--skip-checkout" ) ;
65
65
let llvm_cov = args. contains ( "--llvm-cov" ) ;
66
+ let release = args. contains ( "--release" ) ;
66
67
let running_on_backend = args. opt_value_from_str :: < _ , String > ( "--backend" ) ?;
67
68
68
69
if running_on_backend. is_none ( ) {
@@ -220,13 +221,18 @@ pub fn run_cts(shell: Shell, mut args: Arguments) -> anyhow::Result<()> {
220
221
}
221
222
222
223
log:: info!( "Running {}" , test. selector. to_string_lossy( ) ) ;
223
- shell
224
+ let mut cmd = shell
224
225
. cmd ( "cargo" )
225
226
. args ( run_flags)
226
227
. args ( [ "--manifest-path" . as_ref ( ) , wgpu_cargo_toml. as_os_str ( ) ] )
227
228
. args ( [ "-p" , "cts_runner" ] )
228
- . args ( [ "--bin" , "cts_runner" ] )
229
- . args ( [ "--" , "./tools/run_deno" , "--verbose" ] )
229
+ . args ( [ "--bin" , "cts_runner" ] ) ;
230
+
231
+ if release {
232
+ cmd = cmd. arg ( "--release" )
233
+ }
234
+
235
+ cmd. args ( [ "--" , "./tools/run_deno" , "--verbose" ] )
230
236
. args ( [ & test. selector ] )
231
237
. run ( )
232
238
. context ( "CTS failed" ) ?;
You can’t perform that action at this time.
0 commit comments