]> arthur.barton.de Git - bup.git/blob - t/test-command-without-init-fails.sh
save-cmd.py: don't write an irrelevant and incomplete .bupm fragment.
[bup.git] / t / test-command-without-init-fails.sh
1 #!/usr/bin/env bash
2 . ./wvtest-bup.sh
3
4 set -e -o pipefail
5
6 WVSTART 'all'
7
8 top="$(pwd)"
9 tmpdir="$(wvmktempdir)"
10 export BUP_DIR="$tmpdir/bup"
11
12 bup() { "$top/bup" "$@"; }
13
14 mkdir "$tmpdir/foo"
15
16 set +e
17 bup index "$tmpdir/foo" &> /dev/null
18 index_rc=$?
19 set -e
20 WVPASSEQ "$index_rc" "15"
21
22 rm -rf "$tmpdir"