@@ -104,6 +104,7 @@ fn parse_config(args: Vec<String>) -> Config {
104104 . optopt ( "" , "run" , "whether to execute run-* tests" , "auto | always | never" )
105105 . optflag ( "" , "ignored" , "run tests marked as ignored" )
106106 . optflag ( "" , "has-enzyme" , "run tests that require enzyme" )
107+ . optflag ( "" , "has-offload" , "run tests that require offload" )
107108 . optflag ( "" , "with-rustc-debug-assertions" , "whether rustc was built with debug assertions" )
108109 . optflag ( "" , "with-std-debug-assertions" , "whether std was built with debug assertions" )
109110 . optflag ( "" , "with-std-remap-debuginfo" , "whether std was built with remapping" )
@@ -299,6 +300,7 @@ fn parse_config(args: Vec<String>) -> Config {
299300 let with_std_remap_debuginfo = matches. opt_present ( "with-std-remap-debuginfo" ) ;
300301 let mode = matches. opt_str ( "mode" ) . unwrap ( ) . parse ( ) . expect ( "invalid mode" ) ;
301302 let has_enzyme = matches. opt_present ( "has-enzyme" ) ;
303+ let has_offload = matches. opt_present ( "has-offload" ) ;
302304 let filters = if mode == TestMode :: RunMake {
303305 matches
304306 . free
@@ -444,6 +446,7 @@ fn parse_config(args: Vec<String>) -> Config {
444446 compare_mode,
445447 rustfix_coverage : matches. opt_present ( "rustfix-coverage" ) ,
446448 has_enzyme,
449+ has_offload,
447450 channel : matches. opt_str ( "channel" ) . unwrap ( ) ,
448451 git_hash : matches. opt_present ( "git-hash" ) ,
449452 edition : matches. opt_str ( "edition" ) . as_deref ( ) . map ( parse_edition) ,
0 commit comments