Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
c565309a
Commit
c565309a
authored
10 years ago
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip ipns fuse tests in travis
parent
38177b48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
.travis.yml
.travis.yml
+2
-0
fuse/ipns/ipns_test.go
fuse/ipns/ipns_test.go
+13
-0
No files found.
.travis.yml
View file @
c565309a
...
...
@@ -8,3 +8,5 @@ go:
script
:
-
go test -v ./...
env
:
TEST_NO_FUSE=1
This diff is collapsed.
Click to expand it.
fuse/ipns/ipns_test.go
View file @
c565309a
...
...
@@ -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()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment