snapshot/overlay: add snapshot test suite to overlay
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
68fd25221d
commit
d0b4ce8d17
3 changed files with 124 additions and 31 deletions
|
@ -49,7 +49,16 @@ func DumpDir(t *testing.T, root string) {
|
|||
return err
|
||||
}
|
||||
|
||||
t.Log(fi.Mode(), path)
|
||||
if fi.Mode()&os.ModeSymlink != 0 {
|
||||
target, err := os.Readlink(path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
t.Log(fi.Mode(), path, "->", target)
|
||||
} else {
|
||||
t.Log(fi.Mode(), path)
|
||||
}
|
||||
|
||||
return nil
|
||||
}); err != nil {
|
||||
t.Fatalf("error dumping directory: %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue