From: Bill Kendall Date: Mon, 31 Oct 2011 15:02:57 +0000 (-0500) Subject: xfstests: delay before dumps for incremental tests X-Git-Tag: v2022.05.01~3666 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c9a6f22b9da42140d3970c9980b1e604df523e87;p=xfstests-dev.git xfstests: delay before dumps for incremental tests 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 Signed-off-by: Christoph Hellwig --- diff --git a/024 b/024 index de5ab5fd..64b59bca 100755 --- 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