mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-26 01:55:39 +00:00
tar_test: don't check for extra/missing when validating relative to "."
right now, Check() doesn't check for missing/extra files. So, for the sake of this test, we don't want to do this check for extra/missing files when we validate the validation manifest produced from a tar against the "." root directory (which would be /testdata). Signed-off-by: Stephen Chung <schung@redhat.com>
This commit is contained in:
parent
52985ee3a5
commit
0e2cf67ac3
1 changed files with 0 additions and 12 deletions
12
tar_test.go
12
tar_test.go
|
@ -276,12 +276,6 @@ func TestTreeTraversal(t *testing.T) {
|
||||||
for _, f := range res.Failures {
|
for _, f := range res.Failures {
|
||||||
t.Errorf(f.String())
|
t.Errorf(f.String())
|
||||||
}
|
}
|
||||||
for _, e := range res.Extra {
|
|
||||||
t.Errorf("%s extra not expected", e.Name)
|
|
||||||
}
|
|
||||||
for _, m := range res.Missing {
|
|
||||||
t.Errorf("%s missing not expected", m.Name)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now test an archive that requires placeholder directories, i.e, there are
|
// Now test an archive that requires placeholder directories, i.e, there are
|
||||||
|
@ -311,12 +305,6 @@ func TestTreeTraversal(t *testing.T) {
|
||||||
for _, f := range res.Failures {
|
for _, f := range res.Failures {
|
||||||
t.Errorf(f.String())
|
t.Errorf(f.String())
|
||||||
}
|
}
|
||||||
for _, e := range res.Extra {
|
|
||||||
t.Errorf("%s extra not expected", e.Name)
|
|
||||||
}
|
|
||||||
for _, m := range res.Missing {
|
|
||||||
t.Errorf("%s missing not expected", m.Name)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue