Add paired 'mount' log for 'unmount'

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
This commit is contained in:
Paul "TBBle" Hampson
2021-01-13 02:52:07 +11:00
committed by Gabriel Adrian Samfira
parent 5788d6e520
commit e1f999a182

View File

@@ -944,6 +944,8 @@ func check128LayersMount(name string) func(ctx context.Context, t *testing.T, sn
t.Fatalf("[layer %d] failed to mount on the target(%s): %+v", i, preparing, err)
}
t.Log("mount", preparing)
if err := fstest.CheckDirectoryEqual(preparing, flat); err != nil {
testutil.Unmount(t, preparing)
t.Fatalf("[layer %d] preparing doesn't equal to flat before apply: %+v", i, err)