pkg/mount unit tests: skip some test under non-root#36505
Merged
AkihiroSuda merged 1 commit intomoby:masterfrom Mar 8, 2018
Merged
pkg/mount unit tests: skip some test under non-root#36505AkihiroSuda merged 1 commit intomoby:masterfrom
AkihiroSuda merged 1 commit intomoby:masterfrom
Conversation
This makes `go test .` to pass if run as non-root user, skipping those tests that require superuser privileges (for `mount`). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Member
|
Janky failing on: Which is a flaky test, and is being tracked through #36501 |
Member
|
Also looking at; which comes from moby/integration-cli/daemon/daemon_unix.go Lines 13 to 27 in 3a633a7 Reading the Also reading: .. MNT_FORCE is supported only on 9p, ceph, cifs, fuse, lustre, and NFS Should we just ignore |
Member
|
Or should we remove the |
Member
|
Opened #36511 for discussion |
Codecov Report
@@ Coverage Diff @@
## master #36505 +/- ##
==========================================
+ Coverage 34.64% 35.06% +0.42%
==========================================
Files 613 613
Lines 45404 45574 +170
==========================================
+ Hits 15730 15982 +252
+ Misses 27614 27483 -131
- Partials 2060 2109 +49 |
AkihiroSuda
approved these changes
Mar 8, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This makes
go test .to pass if run as non-root user, skipping those tests that require superuser privileges (formount).(this used to be part of #36091; separated for the sake of cleaner review)