Merge pull request #610 from dmcgowan/snapshot-move-testsuite

snapshot: move testsuite to sub-package
This commit is contained in:
Michael Crosby 2017-03-07 16:45:04 -08:00 committed by GitHub
commit 27a99400e8
5 changed files with 348 additions and 351 deletions

View file

@ -11,6 +11,7 @@ import (
"github.com/docker/containerd"
"github.com/docker/containerd/snapshot"
"github.com/docker/containerd/snapshot/testsuite"
"github.com/docker/containerd/testutil"
)
@ -20,7 +21,7 @@ const (
func TestBtrfs(t *testing.T) {
testutil.RequiresRoot(t)
snapshot.SnapshotterSuite(t, "Btrfs", func(root string) (snapshot.Snapshotter, func(), error) {
testsuite.SnapshotterSuite(t, "Btrfs", func(root string) (snapshot.Snapshotter, func(), error) {
device := setupBtrfsLoopbackDevice(t, root)
snapshotter, err := NewSnapshotter(device.deviceName, root)
if err != nil {