@@ -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" ) ) )
@@ -61,11 +61,11 @@ fn run_tests(mode: Mode, path: &str, target: Option<String>) -> Result<()> {
6161 program : miri_path ( ) ,
6262 output_conflict_handling,
6363 manifest_path : Some ( std:: env:: current_dir ( ) ?. join ( "test_dependencies" ) . join ( "Cargo.toml" ) ) ,
64- dependency_builder : Some ( (
65- std:: env:: current_dir ( ) ?. join ( "miri" ) ,
66- vec ! [ "cargo" . to_string( ) ] ,
67- vec ! [ ( "MIRI_SYSROOT" . to_string( ) , std:: env:: var( "MIRI_SYSROOT" ) . unwrap( ) ) ] ,
68- ) ) ,
64+ dependency_builder : Some ( DependencyBuilder {
65+ program : std:: env:: current_dir ( ) ?. join ( "miri" ) ,
66+ args : vec ! [ "cargo" . to_string( ) ] ,
67+ envs : vec ! [ ( "MIRI_SYSROOT" . to_string( ) , std:: env:: var( "MIRI_SYSROOT" ) . unwrap( ) ) ] ,
68+ } ) ,
6969 } ;
7070 ui_test:: run_tests ( config)
7171}
0 commit comments