@@ -9,11 +9,10 @@ use cargo::{
9
9
use cargo_test_support:: paths:: { root, CargoPathExt } ;
10
10
use cargo_test_support:: registry:: Package ;
11
11
use cargo_test_support:: {
12
- basic_bin_manifest, basic_lib_manifest, basic_manifest, cargo_exe, git, is_nightly, main_file,
13
- paths, process, project, rustc_host, sleep_ms, symlink_supported, t, Execs , ProjectBuilder ,
12
+ basic_bin_manifest, basic_lib_manifest, basic_manifest, cargo_exe, cargo_process, compare, git,
13
+ is_nightly, main_file, paths, process, project, rustc_host, sleep_ms, symlink_supported, t,
14
+ tools, Execs , ProjectBuilder ,
14
15
} ;
15
- use cargo_test_support:: { cargo_process, compare} ;
16
- use cargo_test_support:: { git_process, tools} ;
17
16
use cargo_util:: paths:: dylib_path_envvar;
18
17
use std:: env;
19
18
use std:: fs;
@@ -72,16 +71,8 @@ fn build_with_symlink_to_path_dependency_with_build_script_in_git() {
72
71
. build ( ) ;
73
72
74
73
// It is necessary to have a sub-repository and to add files so there is an index.
75
- git_process ( "init" )
76
- . cwd ( root. join ( "original" ) )
77
- . build_command ( )
78
- . status ( )
79
- . unwrap ( ) ;
80
- git_process ( "add ." )
81
- . cwd ( root. join ( "original" ) )
82
- . build_command ( )
83
- . status ( )
84
- . unwrap ( ) ;
74
+ let repo = git:: init ( & root. join ( "original" ) ) ;
75
+ git:: add ( & repo) ;
85
76
cargo_process ( "build" ) . run ( )
86
77
}
87
78
0 commit comments