Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the rootless code testable #634

Merged
merged 9 commits into from Feb 10, 2022
Merged

Conversation

utam0k
Copy link
Member

@utam0k utam0k commented Jan 23, 2022

馃挭
Related: #279

@utam0k utam0k marked this pull request as draft January 23, 2022 13:21
@codecov-commenter
Copy link

codecov-commenter commented Feb 5, 2022

Codecov Report

Merging #634 (089f59e) into main (de4dcf8) will increase coverage by 0.81%.
The diff coverage is 95.38%.

@@            Coverage Diff             @@
##             main     #634      +/-   ##
==========================================
+ Coverage   69.93%   70.74%   +0.81%     
==========================================
  Files          82       84       +2     
  Lines       10948    11111     +163     
==========================================
+ Hits         7656     7861     +205     
+ Misses       3292     3250      -42     

@utam0k utam0k marked this pull request as ready for review February 5, 2022 14:13
@utam0k utam0k requested review from yihuaf and Furisto February 5, 2022 14:13
Copy link
Collaborator

@yihuaf yihuaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. A few minor nits and request for more comments.

crates/libcontainer/src/rootless.rs Outdated Show resolved Hide resolved
crates/libcontainer/src/rootless.rs Outdated Show resolved Hide resolved
@@ -96,6 +97,26 @@ impl<'a> From<&'a Linux> for Rootless<'a> {
}
}

#[cfg(not(test))]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a super cool idea. Can you add some comments for future us on how this is used in the unit tests?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry but I couldn't imagine what kind of comments you want 馃檱 Please let me more concreate.

Co-authored-by: Eric Fang <github@accounts.unkies.org>
@utam0k utam0k merged commit f9f436a into containers:main Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants