about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-27 09:42:24 +0000
committerbors <bors@rust-lang.org>2023-06-27 09:42:24 +0000
commitb56777352c49329d60f5eec1be0979271f642bc8 (patch)
treed6e8326b49d549d72d7ef6fa25046685305eab14 /src
parent3917774963a2b91a08cb9fe0633f9ed7fa0c702e (diff)
parent0ba4cdb712e64c624abe931b1e750c7e00c40161 (diff)
downloadrust-b56777352c49329d60f5eec1be0979271f642bc8.tar.gz
rust-b56777352c49329d60f5eec1be0979271f642bc8.zip
Auto merge of #2942 - oli-obk:ui_test_bump, r=RalfJung
Make `--quiet` actually do something

address review from https://github.com/rust-lang/miri/pull/2941#discussion_r1242038723
Diffstat (limited to 'src')
-rw-r--r--src/tools/miri/Cargo.lock4
-rw-r--r--src/tools/miri/Cargo.toml2
-rw-r--r--src/tools/miri/tests/compiletest.rs13
3 files changed, 13 insertions, 6 deletions
diff --git a/src/tools/miri/Cargo.lock b/src/tools/miri/Cargo.lock
index 60ebf3057a7..9fca72b095b 100644
--- a/src/tools/miri/Cargo.lock
+++ b/src/tools/miri/Cargo.lock
@@ -842,9 +842,9 @@ dependencies = [
 
 [[package]]
 name = "ui_test"
-version = "0.11.0"
+version = "0.11.6"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b75049e51d3db204b2de79c8ff7a8675c628d81ceef6ec97598c1ab7d4d66802"
+checksum = "24a2e70adc9d18b9b4dd80ea57aeec447103c6fbb354a07c080adad451c645e1"
 dependencies = [
  "bstr",
  "cargo-platform",
diff --git a/src/tools/miri/Cargo.toml b/src/tools/miri/Cargo.toml
index 98dab49f3ef..50864334fc5 100644
--- a/src/tools/miri/Cargo.toml
+++ b/src/tools/miri/Cargo.toml
@@ -36,7 +36,7 @@ libloading = "0.7"
 
 [dev-dependencies]
 colored = "2"
-ui_test = "0.11"
+ui_test = "0.11.6"
 rustc_version = "0.4"
 # Features chosen to match those required by env_logger, to avoid rebuilds
 regex = { version = "1.5.5", default-features = false, features = ["perf", "std"] }
diff --git a/src/tools/miri/tests/compiletest.rs b/src/tools/miri/tests/compiletest.rs
index c57c6c2f25f..d43dc6b92a3 100644
--- a/src/tools/miri/tests/compiletest.rs
+++ b/src/tools/miri/tests/compiletest.rs
@@ -3,8 +3,8 @@ use regex::bytes::Regex;
 use std::ffi::OsString;
 use std::path::{Path, PathBuf};
 use std::{env, process::Command};
-use ui_test::CommandBuilder;
 use ui_test::{color_eyre::Result, Config, Match, Mode, OutputConflictHandling};
+use ui_test::{status_emitter, CommandBuilder};
 
 fn miri_path() -> PathBuf {
     PathBuf::from(option_env!("MIRI").unwrap_or(env!("CARGO_BIN_EXE_miri")))
@@ -149,8 +149,15 @@ fn run_tests(mode: Mode, path: &str, target: &str, with_dependencies: bool) -> R
         // This could be used to overwrite the `Config` on a per-test basis.
         |_, _| None,
         (
-            ui_test::status_emitter::Text,
-            ui_test::status_emitter::Gha::<false> { name: format!("{mode:?} {path} ({target})") },
+            if quiet {
+                Box::<status_emitter::Quiet>::default()
+                    as Box<dyn status_emitter::StatusEmitter + Send>
+            } else {
+                Box::new(status_emitter::Text)
+            },
+            status_emitter::Gha::</* GHA Actions groups*/ false> {
+                name: format!("{mode:?} {path} ({target})"),
+            },
         ),
     )
 }