From 7cfb1bdc70bc1d5d6ddb4e61816c8a5432b396de Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 5 Nov 2016 09:57:45 +0000 Subject: [PATCH] fuse: tests: create the directory before starting tests --- cmd/mount/fs_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/mount/fs_test.go b/cmd/mount/fs_test.go index c1f1fae5a..7d202fa0c 100644 --- a/cmd/mount/fs_test.go +++ b/cmd/mount/fs_test.go @@ -82,6 +82,11 @@ func newRun() *Run { log.Fatalf("Failed to open remote %q: %v", *RemoteName, err) } + err = r.fremote.Mkdir() + if err != nil { + log.Fatalf("Failed to open mkdir %q: %v", *RemoteName, err) + } + r.mountPath, err = ioutil.TempDir("", "rclonefs-mount") if err != nil { log.Fatalf("Failed to create mount dir: %v", err)