@@ -2,7 +2,7 @@ use colored::*;
22use regex:: Regex ;
33use std:: env;
44use std:: path:: PathBuf ;
5- use ui_test:: { color_eyre:: Result , Config , Mode , OutputConflictHandling } ;
5+ use ui_test:: { color_eyre:: Result , Config , DependencyBuilder , Mode , OutputConflictHandling } ;
66
77fn miri_path ( ) -> PathBuf {
88 PathBuf :: from ( option_env ! ( "MIRI" ) . unwrap_or ( env ! ( "CARGO_BIN_EXE_miri" ) ) )
@@ -62,11 +62,11 @@ fn run_tests(mode: Mode, path: &str, target: Option<String>) -> Result<()> {
6262 program : miri_path ( ) ,
6363 output_conflict_handling,
6464 manifest_path : Some ( std:: env:: current_dir ( ) ?. join ( "test_dependencies" ) . join ( "Cargo.toml" ) ) ,
65- dependency_builder : Some ( (
66- std:: env:: current_dir ( ) ?. join ( "miri" ) ,
67- vec ! [ "cargo" . to_string( ) ] ,
68- vec ! [ ( "MIRI_SYSROOT" . to_string( ) , std:: env:: var( "MIRI_SYSROOT" ) . unwrap( ) ) ] ,
69- ) ) ,
65+ dependency_builder : Some ( DependencyBuilder {
66+ program : std:: env:: current_dir ( ) ?. join ( "miri" ) ,
67+ args : vec ! [ "cargo" . to_string( ) ] ,
68+ envs : vec ! [ ( "MIRI_SYSROOT" . to_string( ) , std:: env:: var( "MIRI_SYSROOT" ) . unwrap( ) ) ] ,
69+ } ) ,
7070 } ;
7171 ui_test:: run_tests ( config)
7272}
0 commit comments