]> arthur.barton.de Git - bup.git/commitdiff
t/test.sh: fix occasional atime-related failure in metadata tests.
authorAvery Pennarun <apenwarr@gmail.com>
Mon, 6 Sep 2010 04:24:58 +0000 (21:24 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 22 Sep 2010 02:24:19 +0000 (19:24 -0700)
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 <apenwarr@gmail.com>
t/test.sh

index 83930d38e8f6d7bf345241a8aa5ead002bcf4562..7a4984d9a1eae75ade61a8a3b9f20e1682210a02 100755 (executable)
--- 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).