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>
#!/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")" \
) || exit $?
) || exit $?
fi
+
+WVPASS rm -r "$tmpdir"