overlay: simplify test
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
e2573088ce
commit
e6e9715d73
|
|
@ -5,7 +5,6 @@ package overlay
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
graphdriver "github.com/containers/storage/drivers"
|
graphdriver "github.com/containers/storage/drivers"
|
||||||
|
|
@ -42,15 +41,10 @@ func skipIfNaive(t *testing.T) {
|
||||||
// This test is placed before TestOverlaySetup() because it uses driver options
|
// This test is placed before TestOverlaySetup() because it uses driver options
|
||||||
// different from the other tests.
|
// different from the other tests.
|
||||||
func TestContainersOverlayXattr(t *testing.T) {
|
func TestContainersOverlayXattr(t *testing.T) {
|
||||||
path, err := exec.LookPath("fuse-overlayfs")
|
driver := graphtest.GetDriver(t, driverName, "force_mask=700")
|
||||||
if err != nil {
|
|
||||||
t.Skipf("fuse-overlayfs unavailable")
|
|
||||||
}
|
|
||||||
|
|
||||||
driver := graphtest.GetDriver(t, driverName, "force_mask=700", "mount_program="+path)
|
|
||||||
defer graphtest.PutDriver(t)
|
defer graphtest.PutDriver(t)
|
||||||
require.NoError(t, driver.Create("lower", "", nil))
|
require.NoError(t, driver.Create("lower", "", nil))
|
||||||
graphtest.ReconfigureDriver(t, driverName, "mount_program="+path)
|
graphtest.ReconfigureDriver(t, driverName)
|
||||||
require.NoError(t, driver.Create("upper", "lower", nil))
|
require.NoError(t, driver.Create("upper", "lower", nil))
|
||||||
|
|
||||||
root, err := driver.Get("upper", graphdriver.MountOpts{})
|
root, err := driver.Get("upper", graphdriver.MountOpts{})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue