]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/068: Verify actual file count instead of reported file count
authorAmir Goldstein <amir73il@gmail.com>
Tue, 5 Feb 2019 19:31:18 +0000 (21:31 +0200)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Feb 2019 11:14:56 +0000 (19:14 +0800)
commita70fb7335cc41e4100b34b162a022e341d34b8ca
tree8ce57cc7f09930bcddc51a4d00ea460ff89b33aa
parent53566fac8c067b6b6f2f0d342eae2ff9acdb1b50
xfs/068: Verify actual file count instead of reported file count

This test has the number of files/dirs created by xfsrestore hardcoded
in golden output.

When fsstress is added new ops, the number of files/dirs created with
the same random seed changes and this regularly breaks this test,
so when new fsstress ops are added they should be either added to the
dump test blacklist or golden output of this test needs to be ammended
to reflect the change.

The golden output includes only the file count reported by xfsrestore
and test does not even verify that this is the correct file count.
Instead, leave the golden output neutral and explicitly verify that
file count before and after the test are the same.

With this change, the test becomes agnostic to fsstress ops and we
could also stop blacklisting clone/dedup/copy ops if we want.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/dump
tests/xfs/068
tests/xfs/068.out