7 tmpdir="$(wvmktempdir)"
8 export BUP_DIR="$tmpdir/bup"
11 bup() { "$top/bup" "$@"; }
14 # Fixed in commit 8585613c1f45f3e20feec00b24fc7e3a948fa23e ("Store
15 # metadata in the index....")
18 echo "content" > "$D"/foo
19 echo "content" > "$D"/bar
21 bup save -n save-fail-missing "$D"
22 echo "content" > "$D"/baz
25 WVFAIL bup save -n save-fail-missing "$D"
26 WVPASSEQ "$(bup ls -a save-fail-missing/latest/$TOP/$D/)" "bar
29 # TODO: Test for racecondition between reading a file and reading its metadata?
39 bup save -n save-fail-missing "$D"
44 WVFAIL bup save -n save-fail-missing "$D"
45 WVPASSEQ "$(bup ls -a save-fail-missing/latest/$TOP/$D/)" "bar/