Check for snapshot instead of warning message

This commit is contained in:
Nicolas Chan 2021-05-03 14:13:08 -07:00
parent 2c86dae9ae
commit 5fca26542d

View file

@ -84,7 +84,8 @@ test-restic-incomplete-snapshot () {
chmod 000 "$TEST_TMP/server/world/file1.txt"
TIMESTAMP="$(date +%F_%H-%M-%S --date="2021-01-01")"
OUTPUT="$(./backup.sh -i "$TEST_TMP/server/world" -r "$TEST_TMP/backups-restic" -s "$SCREEN_TMP" -f "$TIMESTAMP")"
assertContains "$OUTPUT" "Incomplete snapshot taken"
assertEquals 1 "$(restic list snapshots -r "$TEST_TMP/backups-restic" | wc -l)"
# assertContains "$OUTPUT" "Incomplete snapshot taken"
}
test-restic-no-snapshot () {