snapshot: Fix leaked mounts and temp directories

Signed-off-by: Samuel Karp <skarp@amazon.com>
This commit is contained in:
Samuel Karp
2017-01-12 01:08:00 +00:00
parent e2eb06dd3d
commit 2c36c387de
4 changed files with 36 additions and 24 deletions

View File

@@ -15,7 +15,7 @@ func TestSnapshotNaiveBasic(t *testing.T) {
if err != nil {
t.Fatal(err)
}
// defer os.RemoveAll(tmpDir)
defer os.RemoveAll(tmpDir)
t.Log(tmpDir)
root := filepath.Join(tmpDir, "root")