Commit c565309a authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

skip ipns fuse tests in travis

parent 38177b48
......@@ -8,3 +8,5 @@ go:
script:
- go test -v ./...
env: TEST_NO_FUSE=1
......@@ -13,6 +13,17 @@ import (
u "github.com/jbenet/go-ipfs/util"
)
func maybeSkipFuseTests(t *testing.T) bool {
v := "TEST_NO_FUSE"
n := strings.ToLower(os.Getenv(v))
skip := n != "" && n != "false" && n != "f"
if skip {
t.Skipf("Skipping FUSE tests (%s=%s)", v, n)
}
return skip
}
func randBytes(size int) []byte {
b := make([]byte, size)
rand.Read(b)
......@@ -47,6 +58,8 @@ func writeFileData(t *testing.T, data []byte, path string) []byte {
}
func setupIpnsTest(t *testing.T, node *core.IpfsNode) (*core.IpfsNode, *fstest.Mount) {
maybeSkipFuseTests(t)
var err error
if node == nil {
node, err = core.NewMockNode()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment