@@ -29,8 +29,8 @@ fn multiple_installs() {
2929 . file ( "b/src/main.rs" , "fn main() {}" ) ;
3030 let p = p. build ( ) ;
3131
32- let mut a = p. cargo ( "install" ) . cwd ( p . root ( ) . join ( "a" ) ) . build_command ( ) ;
33- let mut b = p. cargo ( "install" ) . cwd ( p . root ( ) . join ( "b" ) ) . build_command ( ) ;
32+ let mut a = p. cargo ( "install" ) . cwd ( "a" ) . build_command ( ) ;
33+ let mut b = p. cargo ( "install" ) . cwd ( "b" ) . build_command ( ) ;
3434
3535 a. stdout ( Stdio :: piped ( ) ) . stderr ( Stdio :: piped ( ) ) ;
3636 b. stdout ( Stdio :: piped ( ) ) . stderr ( Stdio :: piped ( ) ) ;
@@ -87,8 +87,8 @@ fn one_install_should_be_bad() {
8787 . file ( "b/src/main.rs" , "fn main() {}" ) ;
8888 let p = p. build ( ) ;
8989
90- let mut a = p. cargo ( "install" ) . cwd ( p . root ( ) . join ( "a" ) ) . build_command ( ) ;
91- let mut b = p. cargo ( "install" ) . cwd ( p . root ( ) . join ( "b" ) ) . build_command ( ) ;
90+ let mut a = p. cargo ( "install" ) . cwd ( "a" ) . build_command ( ) ;
91+ let mut b = p. cargo ( "install" ) . cwd ( "b" ) . build_command ( ) ;
9292
9393 a. stdout ( Stdio :: piped ( ) ) . stderr ( Stdio :: piped ( ) ) ;
9494 b. stdout ( Stdio :: piped ( ) ) . stderr ( Stdio :: piped ( ) ) ;
@@ -157,8 +157,8 @@ fn multiple_registry_fetches() {
157157 . file ( "b/src/main.rs" , "fn main() {}" ) ;
158158 let p = p. build ( ) ;
159159
160- let mut a = p. cargo ( "build" ) . cwd ( p . root ( ) . join ( "a" ) ) . build_command ( ) ;
161- let mut b = p. cargo ( "build" ) . cwd ( p . root ( ) . join ( "b" ) ) . build_command ( ) ;
160+ let mut a = p. cargo ( "build" ) . cwd ( "a" ) . build_command ( ) ;
161+ let mut b = p. cargo ( "build" ) . cwd ( "b" ) . build_command ( ) ;
162162
163163 a. stdout ( Stdio :: piped ( ) ) . stderr ( Stdio :: piped ( ) ) ;
164164 b. stdout ( Stdio :: piped ( ) ) . stderr ( Stdio :: piped ( ) ) ;
@@ -247,8 +247,8 @@ fn git_same_repo_different_tags() {
247247 ) ;
248248 let p = p. build ( ) ;
249249
250- let mut a = p. cargo ( "build -v" ) . cwd ( p . root ( ) . join ( "a" ) ) . build_command ( ) ;
251- let mut b = p. cargo ( "build -v" ) . cwd ( p . root ( ) . join ( "b" ) ) . build_command ( ) ;
250+ let mut a = p. cargo ( "build -v" ) . cwd ( "a" ) . build_command ( ) ;
251+ let mut b = p. cargo ( "build -v" ) . cwd ( "b" ) . build_command ( ) ;
252252
253253 a. stdout ( Stdio :: piped ( ) ) . stderr ( Stdio :: piped ( ) ) ;
254254 b. stdout ( Stdio :: piped ( ) ) . stderr ( Stdio :: piped ( ) ) ;
@@ -316,7 +316,7 @@ fn git_same_branch_different_revs() {
316316
317317 // Generate a Cargo.lock pointing at the current rev, then clear out the
318318 // target directory
319- p. cargo ( "build" ) . cwd ( p . root ( ) . join ( "a" ) ) . run ( ) ;
319+ p. cargo ( "build" ) . cwd ( "a" ) . run ( ) ;
320320 fs:: remove_dir_all ( p. root ( ) . join ( "a/target" ) ) . unwrap ( ) ;
321321
322322 // Make a new commit on the master branch
@@ -330,8 +330,8 @@ fn git_same_branch_different_revs() {
330330
331331 // Now run both builds in parallel. The build of `b` should pick up the
332332 // newest commit while the build of `a` should use the locked old commit.
333- let mut a = p. cargo ( "build" ) . cwd ( p . root ( ) . join ( "a" ) ) . build_command ( ) ;
334- let mut b = p. cargo ( "build" ) . cwd ( p . root ( ) . join ( "b" ) ) . build_command ( ) ;
333+ let mut a = p. cargo ( "build" ) . cwd ( "a" ) . build_command ( ) ;
334+ let mut b = p. cargo ( "build" ) . cwd ( "b" ) . build_command ( ) ;
335335
336336 a. stdout ( Stdio :: piped ( ) ) . stderr ( Stdio :: piped ( ) ) ;
337337 b. stdout ( Stdio :: piped ( ) ) . stderr ( Stdio :: piped ( ) ) ;
0 commit comments