blob: 135de95d029e850be6f5a657afcbdad7bb8c209d [file] [log] [blame]
//go:build !windows
package main
import (
"testing"
"github.com/moby/sys/mount"
)
func mountWrapper(t *testing.T, device, target, mType, options string) error {
t.Helper()
err := mount.Mount(device, target, mType, options)
if err != nil {
return err
}
t.Cleanup(func() { _ = mount.Unmount(target) })
return nil
}