We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9200778 commit 13a27d1Copy full SHA for 13a27d1
phd-tests/runner/src/execute.rs
@@ -101,7 +101,7 @@ pub async fn run_tests_with_ctx(
101
let test_ctx = ctx.clone();
102
let tc = execution.tc;
103
let mut sigint_rx_task = sigint_rx.clone();
104
- let test_outcome = match tokio::spawn(async move {
+ let test_outcome = tokio::spawn(async move {
105
tokio::select! {
106
// Ensure interrupt signals are always handled instead of
107
// continuing to run the test.
@@ -120,12 +120,11 @@ pub async fn run_tests_with_ctx(
120
}
121
})
122
.await
123
- {
124
- Ok(outcome) => outcome,
125
- Err(_) => TestOutcome::Failed(Some(
+ .unwrap_or_else(|_| {
+ TestOutcome::Failed(Some(
126
"test task panicked, see test logs".to_string(),
127
- )),
128
- };
+ ))
+ });
129
130
info!(
131
"test {} ... {}{}",
0 commit comments