From d96dffa0d38d1aca0b13c1086afba868a0449f70 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sun, 6 Jul 2014 13:26:45 -0500 Subject: [PATCH] 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 --- t/test-fuse.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.39.2