diff options
| author | Ralf Jung <post@ralfj.de> | 2024-03-23 18:59:15 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-03-23 18:59:15 +0100 |
| commit | 3d6fcea4178f885d034c49d1c4fc14f81fe71d49 (patch) | |
| tree | 02fdda9eb71c115d18d6b3164a5a441bc3dc639a | |
| parent | 59b29455c17a6bf2fd69c70c194849c86ba35885 (diff) | |
| download | rust-3d6fcea4178f885d034c49d1c4fc14f81fe71d49.tar.gz rust-3d6fcea4178f885d034c49d1c4fc14f81fe71d49.zip | |
when a test fails, repeat the target after the failure report
| -rw-r--r-- | src/tools/miri/tests/ui.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/miri/tests/ui.rs b/src/tools/miri/tests/ui.rs index 7f363ccdfe5..6dee5a6d6c1 100644 --- a/src/tools/miri/tests/ui.rs +++ b/src/tools/miri/tests/ui.rs @@ -4,6 +4,7 @@ use std::ffi::OsString; use std::num::NonZeroUsize; use std::path::{Path, PathBuf}; use std::{env, process::Command}; +use ui_test::color_eyre::eyre::Context; use ui_test::{color_eyre::Result, Config, Match, Mode, OutputConflictHandling}; use ui_test::{status_emitter, CommandBuilder, Format, RustfixMode}; @@ -231,6 +232,7 @@ fn ui( WithoutDependencies => false, }; run_tests(mode, path, target, with_dependencies, tmpdir) + .with_context(|| format!("ui tests in {path} for {target} failed")) } fn get_target() -> String { |
