fuse: tests: create the directory before starting tests

This commit is contained in:
Nick Craig-Wood 2016-11-05 09:57:45 +00:00
parent 441951a93b
commit 7cfb1bdc70

View file

@ -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)