]> arthur.barton.de Git - bup.git/commitdiff
test-meta.sh: handle BUP_DIR via wvmktempdir
authorRob Browning <rlb@defaultvalue.org>
Sun, 18 Jan 2015 21:58:02 +0000 (15:58 -0600)
committerRob Browning <rlb@defaultvalue.org>
Thu, 22 Jan 2015 04:22:25 +0000 (22:22 -0600)
Put the BUP_DIR in a real tmpdir instead of ./buptest.tmp.

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

index 0c11ee936d7e0472da30f6d044425b4e83f51c90..cfd22e488b481b8c4aa20429d28779bd75afba5b 100755 (executable)
@@ -1,11 +1,13 @@
 #!/usr/bin/env bash
-. wvtest.sh || exit $?
+. wvtest-bup.sh || exit $?
 . t/lib.sh || exit $?
 
 set -o pipefail
 
 TOP="$(WVPASS pwd)" || exit $?
-export BUP_DIR="$TOP/buptest.tmp"
+tmpdir="$(WVPASS wvmktempdir)" || exit $?
+
+export BUP_DIR="$tmpdir/bup"
 
 WVPASS force-delete "$TOP/bupmeta.tmp"
 timestamp_resolutions="$(t/ns-timestamp-resolutions "$TOP/bupmeta.tmp")" \
@@ -756,3 +758,5 @@ if [ "$root_status" = root ]; then
         ) || exit $?
     ) || exit $?
 fi
+
+WVPASS rm -r "$tmpdir"