]> arthur.barton.de Git - bup.git/blob - t/test-command-without-init-fails.sh
test-restore-map-owner: accommodate python 3 and test there
[bup.git] / t / test-command-without-init-fails.sh
1 #!/usr/bin/env bash
2 . ./wvtest-bup.sh || exit $?
3
4 set -o pipefail
5
6 WVSTART 'all'
7
8 top="$(WVPASS pwd)" || exit $?
9 tmpdir="$(WVPASS wvmktempdir)" || exit $?
10
11 export BUP_DIR="$tmpdir/bup"
12
13 bup() { "$top/bup" "$@"; }
14
15 WVPASS mkdir "$tmpdir/foo"
16
17 bup index "$tmpdir/foo" &> /dev/null
18 index_rc=$?
19 WVPASSEQ "$index_rc" "15"
20
21 WVPASS rm -rf "$tmpdir"