Fix compile-test tests to work with the new ui_test crate
This commit is contained in:
parent
ba1ffec5b5
commit
4aa4fecf89
@ -31,7 +31,7 @@ fn base_config(test_dir: &str) -> compiletest::Config {
|
||||
},
|
||||
dependencies_crate_manifest_path: Some("clippy_test_deps/Cargo.toml".into()),
|
||||
target: None,
|
||||
out_dir: "target/ui_test".into(),
|
||||
out_dir: PathBuf::from(std::env::var_os("CARGO_TARGET_DIR").unwrap_or("target".into())).join("ui_test"),
|
||||
..compiletest::Config::rustc(Path::new("tests").join(test_dir))
|
||||
};
|
||||
|
||||
@ -116,10 +116,7 @@ fn run_ui_toml() {
|
||||
|
||||
config.stderr_filter(
|
||||
®ex::escape(
|
||||
&std::path::Path::new(file!())
|
||||
.parent()
|
||||
.unwrap()
|
||||
.canonicalize()
|
||||
&fs::canonicalize("tests")
|
||||
.unwrap()
|
||||
.parent()
|
||||
.unwrap()
|
||||
@ -175,10 +172,7 @@ fn run_ui_cargo() {
|
||||
|
||||
config.stderr_filter(
|
||||
®ex::escape(
|
||||
&std::path::Path::new(file!())
|
||||
.parent()
|
||||
.unwrap()
|
||||
.canonicalize()
|
||||
&fs::canonicalize("tests")
|
||||
.unwrap()
|
||||
.parent()
|
||||
.unwrap()
|
||||
|
Loading…
x
Reference in New Issue
Block a user