-
Notifications
You must be signed in to change notification settings - Fork 59
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
Remove MOUNT_SECURE bool #595
Conversation
Codecov Report
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Could you please also remove the MOUNT_SECURE from common.rs
?
let path = "/var/lib/keylime"; | ||
let work_dir = Path::new(&path); | ||
let secure_dir_path = Path::new(work_dir).join("secure"); | ||
let temp_workdir = tempfile::tempdir().unwrap(); //#[allow_ci] |
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 suggest you keep the "secure"
to force mount()
to create the directory. It will increase the coverage. Something like:
let temp_workdir = tempfile::tempdir().unwrap(); //#[allow_ci] | |
let temp_workdir = tempfile::tempdir().unwrap(); //#[allow_ci] | |
let secure_dir_path = Path::new(temp_workdir).join("secure"); |
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.
Actually it seems that this decreased code coverage a lot from point of secure mount.
5716832
to
a21ce09
Compare
Remove MOUNT_SECURE bool and conditional related with bool.Update secure mount unit test to mount temp dir. Signed-off-by: Patrik Koncity <[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.
LGTM!
Remove MOUNT_SECURE bool and conditional
related with bool.Update secure mount
unit test to mount temp dir.