Skip to content

Commit

Permalink
re-add test
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Jan 25, 2024
1 parent 26042da commit 56adba0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions t/runtest
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,13 @@ cp -a /tmp/backup/ /tmp/restore

echo "rollback OK"

FILE=$(echo /tmp/restore/ide0-hd0/FULL*)
RESTORED_FILE=$(echo /tmp/restore/ide0-hd0/FULL*)
ORIGINAL_FILE=$(echo /tmp/backup/ide0-hd0/FULL*)
echo "------------------------------------------------"
echo "Check rebased image: $FILE"
echo "------------------------------------------------"
qemu-img info "${FILE}" > /dev/null
qemu-img info "${RESTORED_FILE}" > /dev/null
# between full and diff backup, additional data was changed
# within the image. Diff must show these changes between
# original and on incremental rebased image after restore.
virt-diff -a "$ORIGINAL_FILE" -A "$RESTORED_FILE" | grep incdata > /dev/null

0 comments on commit 56adba0

Please sign in to comment.