From: Avery Pennarun Date: Mon, 6 Sep 2010 04:24:58 +0000 (-0700) Subject: t/test.sh: fix occasional atime-related failure in metadata tests. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ae1dceb9ec18c827f62de064ea12d538eb20eba9;p=packages%2Fb%2Fbup.git t/test.sh: fix occasional atime-related failure in metadata tests. The 'stat' command prints files' atimes, which can be modified just by looking at them. There's no point comparing that, since it can change from one run to the next for legitimate reasons. Signed-off-by: Avery Pennarun --- diff --git a/t/test.sh b/t/test.sh index 83930d3..7a4984d 100755 --- a/t/test.sh +++ b/t/test.sh @@ -234,7 +234,8 @@ genstat() xargs stat | sed -e 's/Inode: [0-9]\+//' \ -e '/^ \+Size: /d' \ - -e '/^Change: /d' + -e '/^Change: /d' \ + -e '/^Access: [0-9]/d' } # Create a test tree and collect its info via stat(1).