From: Matt Joiner Date: Thu, 20 Nov 2014 22:28:14 +0000 (-0600) Subject: Ignore failures due to FUSE not available X-Git-Tag: v1.0.0~1492 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c4bae8f4c2d1cdb9f9c66b9df251357aa3fdb3a9;p=btrtrc.git Ignore failures due to FUSE not available --- diff --git a/fs/torrentfs_test.go b/fs/torrentfs_test.go index 2b4d43cc..b6fc297d 100644 --- a/fs/torrentfs_test.go +++ b/fs/torrentfs_test.go @@ -11,6 +11,7 @@ import ( "os" "path/filepath" "strconv" + "strings" "testing" "time" @@ -93,11 +94,15 @@ func TestUnmountWedged(t *testing.T) { DisableTrackers: true, NoDHT: true, }) + defer client.Stop() log.Printf("%+v", *layout.Metainfo) client.AddTorrent(layout.Metainfo) fs := New(client) fuseConn, err := fuse.Mount(layout.MountDir) if err != nil { + if strings.Contains(err.Error(), "fuse") { + t.Skip(err) + } t.Fatal(err) } go func() {