a7a6270f2a
Also remove the target from the Mount struct because it should not be used at all. The target can be variable and set by a caller, not by the snapshot drivers. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
13 lines
238 B
Go
13 lines
238 B
Go
package testutil
|
|
|
|
import (
|
|
"syscall"
|
|
"testing"
|
|
)
|
|
|
|
func Unmount(t *testing.T, mountPoint string) {
|
|
t.Log("unmount", mountPoint)
|
|
if err := syscall.Unmount(mountPoint, 0); err != nil {
|
|
t.Error("Could not umount", mountPoint, err)
|
|
}
|
|
}
|