Merge pull request #1760 from dnephin/run-unit-tests-on-windows

Re-enable unit tests on appveyor
This commit is contained in:
Kenfe-Mickaël Laventure
2017-11-15 18:53:16 -08:00
committed by GitHub
8 changed files with 49 additions and 21 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"os"
"path/filepath"
"runtime"
"testing"
"github.com/boltdb/bolt"
@@ -39,6 +40,9 @@ func newTestSnapshotter(ctx context.Context, root string) (snapshot.Snapshotter,
}
func TestMetadata(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("snapshotter not implemented on windows")
}
// Snapshot tests require mounting, still requires root
testutil.RequiresRoot(t)
testsuite.SnapshotterSuite(t, "Metadata", newTestSnapshotter)