-
Notifications
You must be signed in to change notification settings - Fork 65
Fix test_canonicalize_rootfs #280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
7782d17
to
d12a4d2
Compare
@@ -277,7 +277,8 @@ mod tests { | |||
fn test_canonicalize_rootfs() { | |||
let rootfs_name = "rootfs"; | |||
let bundle = tempfile::tempdir().expect("failed to create tmp test bundle dir"); | |||
let rootfs_absolute_path = bundle.path().join(rootfs_name); | |||
let bundle = fs::canonicalize(bundle.path()).expect("failed to canonicalize bundle"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why macOS needs fs::canonicalize()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ echo $TMPDIR; realpath $TMPDIR
/var/folders/_h/j_17023n23s3_50cq_gwhrrc0000gq/T/
/private/var/folders/_h/j_17023n23s3_50cq_gwhrrc0000gq/T
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May I ask you to add the comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Same problem reported in #163. |
Signed-off-by: Stepan Koltsov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Test failed on my macOS laptop: