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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user