]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
test-meta.sh: use the more portable "touch -t" instead of "touch -d".
authorRob Browning <rlb@defaultvalue.org>
Fri, 16 Aug 2013 01:23:20 +0000 (20:23 -0500)
committerRob Browning <rlb@defaultvalue.org>
Fri, 16 Aug 2013 01:55:14 +0000 (20:55 -0500)
Thanks to Greg Troxel <gdt@work.lexort.com> for the report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
t/test-meta.sh

index 076f61941842c83c43233efcaf71b1e0233057a1..1d7e467bafe2b243327dddb26256345ecef98901 100755 (executable)
@@ -119,8 +119,8 @@ setup-test-tree()
     # entries would sort in the wrong order because the metadata
     # entries were being sorted by mangled name, but the index isn't.
     dd if=/dev/zero of="$TOP/bupmeta.tmp"/src/foo bs=1k count=33
-    touch -d 2011-11-11 "$TOP/bupmeta.tmp"/src/foo
-    touch -d 2011-12-12 "$TOP/bupmeta.tmp"/src/foo-bar
+    touch -t 201111111111 "$TOP/bupmeta.tmp"/src/foo
+    touch -t 201112121111 "$TOP/bupmeta.tmp"/src/foo-bar
 
     t/mksock "$TOP/bupmeta.tmp/src/test-socket" || true
 ) || WVFAIL