]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfstests: delay before dumps for incremental tests
authorBill Kendall <wkendall@sgi.com>
Mon, 31 Oct 2011 15:02:57 +0000 (10:02 -0500)
committerChristoph Hellwig <hch@lst.de>
Thu, 3 Nov 2011 10:16:13 +0000 (10:16 +0000)
To get reproducible results when testing incremental backups, files
contained in a backup should not have the same timestamp (at second
resolution) as the backup itself. If they do, those files will also
be included in the incremental backup, and this will likely cause
issues in the expected output of the test. This patch adds a sleep
to test 024 prior to doing the level 0 backup. The other incremental
tests already include similar delays.

Signed-off-by: Bill Kendall <wkendall@sgi.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
024

diff --git a/024 b/024
index de5ab5fd6b33e9c8dc95f999fc12f402d2bcf6a3..64b59bca28943861032d8eb8e59841df3e1625b8 100755 (executable)
--- a/024
+++ b/024
@@ -42,6 +42,8 @@ _supported_os Linux
 
 _require_tape $TAPE_DEV
 _create_dumpdir_fill
+# ensure file/dir timestamps precede dump timestamp
+sleep 2
 src/bstat $SCRATCH_MNT >>$here/$seq.full
 _erase_hard
 _do_dump