@@ -58,7 +58,7 @@ mod cache {
58
58
symlink:: symlink_dir ( & forbidden, tmp. path ( ) . join ( "link-to-dir" ) ) . unwrap ( ) ;
59
59
std:: fs:: write ( tmp. path ( ) . join ( "file-in-dir" ) , & [ ] ) . unwrap ( ) ;
60
60
61
- for dirname in & [ "link-to -dir" , "file-in -dir" ] {
61
+ for dirname in & [ "file-in -dir" , "link-to -dir" ] {
62
62
cache. unlink_on_collision = false ;
63
63
let relative_path = format ! ( "{}/file" , dirname) ;
64
64
assert_eq ! (
@@ -284,35 +284,26 @@ fn keep_going_collects_results() {
284
284
)
285
285
. unwrap ( ) ;
286
286
287
- assert_eq ! (
288
- outcome
289
- . errors
290
- . iter( )
291
- . map(
292
- |r| r. error. to_string( ) [ .."object 4f41554f6e0045ef53848fc0c3f33b6a9abc24a9 for checkout at " . len( ) ]
293
- . to_owned( )
294
- )
295
- . collect:: <Vec <_>>( ) ,
296
- [
297
- "4f41554f6e0045ef53848fc0c3f33b6a9abc24a9" ,
298
- "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
299
- ]
300
- . iter( )
301
- . map( |id| format!( "object {} for checkout at " , id) )
302
- . collect:: <Vec <_>>( )
303
- ) ;
304
287
assert_eq ! (
305
288
outcome
306
289
. errors
307
290
. iter( )
308
291
. map( |r| r. path. to_path_lossy( ) . into_owned( ) )
309
292
. collect:: <Vec <_>>( ) ,
310
- paths( [ "dir/content" , "empty" ] )
293
+ paths( if opts. fs. symlink {
294
+ [ "dir/content" , "empty" ]
295
+ } else {
296
+ [ "dir/content" , "dir/sub-dir/symlink" ] // not actually a symlink anymore
297
+ } )
311
298
) ;
312
299
313
300
assert_eq ! (
314
301
stripped_prefix( & destination, & dir_structure( & destination) ) ,
315
- paths( [ "dir/sub-dir/symlink" , "executable" ] ) ,
302
+ paths( if opts. fs. symlink {
303
+ [ "dir/sub-dir/symlink" , "executable" ]
304
+ } else {
305
+ [ "empty" , "executable" ]
306
+ } ) ,
316
307
"some files could not be created"
317
308
) ;
318
309
0 commit comments