]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Ignore failures due to FUSE not available
authorMatt Joiner <anacrolix@gmail.com>
Thu, 20 Nov 2014 22:28:14 +0000 (16:28 -0600)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 20 Nov 2014 22:28:14 +0000 (16:28 -0600)
fs/torrentfs_test.go

index 2b4d43cc802d8f791ed7bbd22cff21248de88ea0..b6fc297d15a899886fb46ab8c58a5aa99ffd1743 100644 (file)
@@ -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() {