From: Rob Browning Date: Sun, 6 Jul 2014 18:26:45 +0000 (-0500) Subject: test-fuse.sh: set TZ=UTC for ls dates X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d96dffa0d38d1aca0b13c1086afba868a0449f70;p=packages%2Fb%2Fbup.git test-fuse.sh: set TZ=UTC for ls dates Thanks to Mark J Hewitt and Scott Sugar for reporting the problem, and Patrick Rouleau for helping test the solution. Signed-off-by: Rob Browning Tested-by: Rob Browning --- diff --git a/t/test-fuse.sh b/t/test-fuse.sh index d3d78b7..ec02ec1 100755 --- a/t/test-fuse.sh +++ b/t/test-fuse.sh @@ -67,12 +67,12 @@ WVPASS fusermount -uz mnt WVSTART "extended metadata" WVPASS bup fuse --meta mnt -result=$(WVPASS ls -l mnt/src/latest/) || exit $? +result=$(TZ=UTC WVPASS ls -l mnt/src/latest/) || exit $? readonly user=$(WVPASS id -un) || $? readonly group=$(WVPASS id -gn) || $? WVPASSEQ "$result" "total 0 -rw-r--r-- 1 $user $group 29 Nov 11 2011 foo --rw-r--r-- 1 $user $group 29 Dec 31 1969 pre-epoch" +-rw-r--r-- 1 $user $group 29 Jan 1 1970 pre-epoch" WVPASS fusermount -uz mnt WVPASS rm -rf "$tmpdir"