Split NsEnterMounter and Mounter implementation of doBindSubpath

nsenter implementation needs to mount different thing in the end and do
different checks on the result.
This commit is contained in:
Jan Safranek
2018-05-23 10:15:12 +02:00
parent 225a879b07
commit 9f80de3772
5 changed files with 167 additions and 137 deletions

View File

@@ -1291,7 +1291,7 @@ func TestBindSubPath(t *testing.T) {
}
_, subpathMount := getTestPaths(base)
bindPathTarget, err := doBindSubPath(fm, subpath, 1)
bindPathTarget, err := doBindSubPath(fm, subpath)
if test.expectError {
if err == nil {
t.Errorf("test %q failed: expected error, got success", test.name)