Skip to content

Commit eafc100

Browse files
committed
Bump ui_test to 0.3.1
1 parent b74654f commit eafc100

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ libc = "0.2"
4040

4141
[dev-dependencies]
4242
colored = "2"
43-
ui_test = "0.2"
43+
ui_test = "0.3.1"
4444
# Features chosen to match those required by env_logger, to avoid rebuilds
4545
regex = { version = "1.5.5", default-features = false, features = ["perf", "std"] }
4646
lazy_static = "1.4.0"

tests/compiletest.rs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use colored::*;
22
use regex::Regex;
33
use std::path::{Path, PathBuf};
44
use std::{env, process::Command};
5-
use ui_test::{color_eyre::Result, Config, DependencyBuilder, Mode, OutputConflictHandling};
5+
use ui_test::{color_eyre::Result, Config, Mode, OutputConflictHandling};
66

77
fn miri_path() -> PathBuf {
88
PathBuf::from(option_env!("MIRI").unwrap_or(env!("CARGO_BIN_EXE_miri")))
@@ -114,17 +114,14 @@ fn run_tests(
114114
if with_dependencies && use_std {
115115
config.dependencies_crate_manifest_path =
116116
Some(Path::new("test_dependencies").join("Cargo.toml"));
117-
config.dependency_builder = Some(DependencyBuilder {
118-
program: std::env::var_os("CARGO").unwrap().into(),
119-
args: vec![
120-
"run".into(),
121-
"--manifest-path".into(),
122-
"cargo-miri/Cargo.toml".into(),
123-
"--".into(),
124-
"miri".into(),
125-
],
126-
envs: vec![],
127-
});
117+
config.dependency_builder.args = vec![
118+
"run".into(),
119+
"--manifest-path".into(),
120+
"cargo-miri/Cargo.toml".into(),
121+
"--".into(),
122+
"miri".into(),
123+
"run".into(),
124+
];
128125
}
129126
ui_test::run_tests(config)
130127
}

0 commit comments

Comments
 (0)