Merge "fs: clean up mountpoints after tests"

This commit is contained in:
Brad Fitzpatrick 2014-02-18 04:41:46 +00:00 committed by Gerrit Code Review
commit 4a59155890
1 changed files with 5 additions and 0 deletions

View File

@ -129,6 +129,11 @@ func cammountTest(t *testing.T, fn func(env *mountEnv)) {
if err != nil {
t.Fatal(err)
}
defer func() {
if err := os.RemoveAll(mountPoint); err != nil {
t.Fatal(err)
}
}()
verbose := "false"
var stderrDest io.Writer = ioutil.Discard
if v, _ := strconv.ParseBool(os.Getenv("VERBOSE_FUSE")); v {