Skip some tests on windows where the implementation is missing

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin
2017-11-14 18:13:11 -05:00
parent fe5bb4a0fc
commit a72279e53d
5 changed files with 25 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package naive
import (
"context"
"runtime"
"testing"
"github.com/containerd/containerd/snapshot"
@@ -19,6 +20,9 @@ func newSnapshotter(ctx context.Context, root string) (snapshot.Snapshotter, fun
}
func TestNaive(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("snapshotter not implemented on windows")
}
testutil.RequiresRoot(t)
testsuite.SnapshotterSuite(t, "Naive", newSnapshotter)
}