(#[values(false, true)] enable_profiler: bool)
| 316 | #[rstest::rstest] |
| 317 | #[test_log::test(tokio::test)] |
| 318 | async fn test_walltime_executor_fails(#[values(false, true)] enable_profiler: bool) { |
| 319 | let (_permit, mut executor) = get_walltime_executor().await; |
| 320 | |
| 321 | let config = walltime_config("exit 1", enable_profiler); |
| 322 | // Unset GITHUB_ACTIONS to force LocalProvider which supports repository_override |
| 323 | temp_env::async_with_vars(&[("GITHUB_ACTIONS", None::<&str>)], async { |
| 324 | let (execution_context, _temp_dir) = create_test_setup(config).await; |
| 325 | let result = executor.run(&execution_context, &None).await; |
| 326 | assert!(result.is_err(), "Command should fail"); |
| 327 | }) |
| 328 | .await; |
| 329 | } |
| 330 | // |
| 331 | // Exec-harness currently does not support the inline multi command scripts |
| 332 | #[template] |
nothing calls this directly
no test coverage detected