@@ -239,21 +239,24 @@ mod walltime {
239239 ( permit, WallTimeExecutor :: new ( ) )
240240 }
241241
242- fn walltime_config ( command : & str , enable_perf : bool ) -> ExecutorConfig {
242+ fn walltime_config ( command : & str , enable_profiler : bool ) -> ExecutorConfig {
243243 ExecutorConfig {
244244 command : command. to_string ( ) ,
245- enable_perf ,
245+ enable_profiler ,
246246 ..ExecutorConfig :: test ( )
247247 }
248248 }
249249
250250 #[ apply( test_cases) ]
251251 #[ rstest:: rstest]
252252 #[ test_log:: test( tokio:: test) ]
253- async fn test_walltime_executor ( #[ case] cmd : & str , #[ values( false , true ) ] enable_perf : bool ) {
253+ async fn test_walltime_executor (
254+ #[ case] cmd : & str ,
255+ #[ values( false , true ) ] enable_profiler : bool ,
256+ ) {
254257 let ( _permit, mut executor) = get_walltime_executor ( ) . await ;
255258
256- let config = walltime_config ( cmd, enable_perf ) ;
259+ let config = walltime_config ( cmd, enable_profiler ) ;
257260 // Unset GITHUB_ACTIONS to force LocalProvider which supports repository_override
258261 temp_env:: async_with_vars ( & [ ( "GITHUB_ACTIONS" , None :: < & str > ) ] , async {
259262 let ( execution_context, _temp_dir) = create_test_setup ( config) . await ;
@@ -267,7 +270,7 @@ mod walltime {
267270 #[ test_log:: test( tokio:: test) ]
268271 async fn test_walltime_executor_with_env (
269272 #[ case] env_case : ( & str , & str ) ,
270- #[ values( false , true ) ] enable_perf : bool ,
273+ #[ values( false , true ) ] enable_profiler : bool ,
271274 ) {
272275 let ( _permit, mut executor) = get_walltime_executor ( ) . await ;
273276
@@ -276,7 +279,7 @@ mod walltime {
276279 & [ ( env_var, Some ( env_value) ) , ( "GITHUB_ACTIONS" , None ) ] ,
277280 async {
278281 let cmd = env_var_validation_script ( env_var, env_value) ;
279- let config = walltime_config ( & cmd, enable_perf ) ;
282+ let config = walltime_config ( & cmd, enable_profiler ) ;
280283 let ( execution_context, _temp_dir) = create_test_setup ( config) . await ;
281284 executor. run ( & execution_context, & None ) . await . unwrap ( ) ;
282285 } ,
@@ -287,7 +290,7 @@ mod walltime {
287290 // Ensure that the working directory is used correctly
288291 #[ rstest:: rstest]
289292 #[ test_log:: test( tokio:: test) ]
290- async fn test_walltime_executor_in_working_dir ( #[ values( false , true ) ] enable_perf : bool ) {
293+ async fn test_walltime_executor_in_working_dir ( #[ values( false , true ) ] enable_profiler : bool ) {
291294 let ( _permit, mut executor) = get_walltime_executor ( ) . await ;
292295
293296 let cmd = r#"
@@ -297,7 +300,7 @@ if [ "$(basename "$(pwd)")" != "within_sub_directory" ]; then
297300fi
298301"# ;
299302
300- let mut config = walltime_config ( cmd, enable_perf ) ;
303+ let mut config = walltime_config ( cmd, enable_profiler ) ;
301304
302305 let dir = TempDir :: new ( ) . unwrap ( ) ;
303306 config. working_directory = Some (
319322 // Ensure that commands that fail actually fail
320323 #[ rstest:: rstest]
321324 #[ test_log:: test( tokio:: test) ]
322- async fn test_walltime_executor_fails ( #[ values( false , true ) ] enable_perf : bool ) {
325+ async fn test_walltime_executor_fails ( #[ values( false , true ) ] enable_profiler : bool ) {
323326 let ( _permit, mut executor) = get_walltime_executor ( ) . await ;
324327
325- let config = walltime_config ( "exit 1" , enable_perf ) ;
328+ let config = walltime_config ( "exit 1" , enable_profiler ) ;
326329 // Unset GITHUB_ACTIONS to force LocalProvider which supports repository_override
327330 temp_env:: async_with_vars ( & [ ( "GITHUB_ACTIONS" , None :: < & str > ) ] , async {
328331 let ( execution_context, _temp_dir) = create_test_setup ( config) . await ;
0 commit comments