1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 19:32:24 +08:00

testing/ci: all env var checks now use new pkgs

Good thing, i checked one wrong, too!
This commit is contained in:
Juan Batiz-Benet
2015-01-14 15:43:58 -08:00
parent 73b3c30452
commit 0311c0518d
6 changed files with 23 additions and 23 deletions

View File

@ -5,24 +5,20 @@ import (
"crypto/rand"
"io/ioutil"
"os"
"strings"
"testing"
"time"
fstest "github.com/jbenet/go-ipfs/Godeps/_workspace/src/bazil.org/fuse/fs/fstestutil"
core "github.com/jbenet/go-ipfs/core"
u "github.com/jbenet/go-ipfs/util"
ci "github.com/jbenet/go-ipfs/util/testutil/ci"
)
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)
func maybeSkipFuseTests(t *testing.T) {
if ci.NoFuse() {
t.Skip("Skipping FUSE tests")
}
return skip
}
func randBytes(size int) []byte {