File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,8 @@ mod tests {
277
277
fn test_canonicalize_rootfs ( ) {
278
278
let rootfs_name = "rootfs" ;
279
279
let bundle = tempfile:: tempdir ( ) . expect ( "failed to create tmp test bundle dir" ) ;
280
- let rootfs_absolute_path = bundle. path ( ) . join ( rootfs_name) ;
280
+ let bundle = fs:: canonicalize ( bundle. path ( ) ) . expect ( "failed to canonicalize bundle" ) ;
281
+ let rootfs_absolute_path = bundle. join ( rootfs_name) ;
281
282
assert ! (
282
283
rootfs_absolute_path. is_absolute( ) ,
283
284
"rootfs path is not absolute path"
@@ -295,7 +296,7 @@ mod tests {
295
296
. build ( )
296
297
. unwrap ( ) ;
297
298
298
- spec. canonicalize_rootfs ( bundle. path ( ) )
299
+ spec. canonicalize_rootfs ( & bundle)
299
300
. expect ( "failed to canonicalize rootfs" ) ;
300
301
301
302
assert_eq ! (
@@ -310,7 +311,7 @@ mod tests {
310
311
. build ( )
311
312
. unwrap ( ) ;
312
313
313
- spec. canonicalize_rootfs ( bundle. path ( ) )
314
+ spec. canonicalize_rootfs ( & bundle)
314
315
. expect ( "failed to canonicalize rootfs" ) ;
315
316
316
317
assert_eq ! (
You can’t perform that action at this time.
0 commit comments