diff --git a/daemon/graphdriver/graphtest/graphtest.go b/daemon/graphdriver/graphtest/graphtest.go index c83c840bc3..f8ccb2ef33 100644 --- a/daemon/graphdriver/graphtest/graphtest.go +++ b/daemon/graphdriver/graphtest/graphtest.go @@ -31,6 +31,9 @@ func newDriver(t *testing.T, name string) *Driver { d, err := graphdriver.GetDriver(name, root) if err != nil { + if err == graphdriver.ErrNotSupported { + t.Skip("Driver %s not supported", name) + } t.Fatal(err) } return &Driver{d, root, 1} @@ -54,7 +57,7 @@ func GetDriver(t *testing.T, name string) graphdriver.Driver { func PutDriver(t *testing.T) { if drv == nil { - t.Fatal("No driver to put!") + t.Skip("No driver to put!") } drv.refCount-- if drv.refCount == 0 {