Use common unmount util func for TearDownAt()

This commit is contained in:
rkouj
2016-12-19 16:40:55 -08:00
parent def8022729
commit c14d47dffe
14 changed files with 24 additions and 214 deletions

View File

@@ -98,7 +98,7 @@ func UnmountPath(mountPath string, mounter mount.Interface) error {
glog.V(4).Infof("%q is unmounted, deleting the directory", mountPath)
return os.Remove(mountPath)
}
return nil
return fmt.Errorf("Failed to unmount path %v", mountPath)
}
// PathExists returns true if the specified path exists.