Skip to content

Commit a5d9732

Browse files
committed
xtask: Run tmt report on failure
Why tmt doesn't do this by default, I have no idea. It's also baffling that it takes three levels of verbose i.e. `-vvv` to get the actual test error. But anyways it works. Signed-off-by: Colin Walters <[email protected]>
1 parent 7fbe8c8 commit a5d9732

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/xtask/src/xtask.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ fn run_tmt(sh: &Shell, args: &RunTmtArgs) -> Result<()> {
781781
println!("========================================\n");
782782

783783
if !all_passed {
784+
cmd!(sh, "tmt run -l report -vvv").ignore_status().run()?;
784785
anyhow::bail!("Some tests failed");
785786
}
786787

0 commit comments

Comments
 (0)