2
0
mirror of synced 2025-02-23 14:18:13 +00:00

Tighten FUSE test skipping

This commit is contained in:
Matt Joiner 2017-06-01 11:19:45 +10:00
parent 296ef76c36
commit 714a72cdd4

View File

@ -8,7 +8,6 @@ import (
_ "net/http/pprof"
"os"
"path/filepath"
"strings"
"testing"
"time"
@ -102,11 +101,11 @@ func TestUnmountWedged(t *testing.T) {
fs := New(client)
fuseConn, err := fuse.Mount(layout.MountDir)
if err != nil {
msg := fmt.Sprintf("error mounting: %s", err)
if strings.Contains(err.Error(), "fuse") || err.Error() == "exit status 71" {
t.Skip(msg)
switch err.Error() {
case "cannot locate OSXFUSE":
t.Skip(err)
}
t.Fatal(msg)
t.Fatal(err)
}
go func() {
server := fusefs.New(fuseConn, &fusefs.Config{