Tighten FUSE test skipping
This commit is contained in:
parent
296ef76c36
commit
714a72cdd4
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user