Skip to content

Commit

Permalink
restore-test: fix full-restore testrunner
Browse files Browse the repository at this point in the history
The restore result was not checked before
  • Loading branch information
sebsura committed Feb 12, 2024
1 parent 71c4b55 commit 0abd660
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions systemtests/tests/restore/testrunner-full-restore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ wait
messages
@$out $log_home/jobs.out
list jobs
@$out $log_home/backup-full.out
@$out $log_home/restore-full.out
restore client=bareos-fd fileset=SelfTest where=$tmp/bareos-restores select all done yes
wait
messages
Expand All @@ -44,8 +44,12 @@ check_for_zombie_jobs storage=File
check_preconditions

expect_grep "Start Restore Job" \
"$log_home/backup-full.out" \
"$log_home/restore-full.out" \
"Required restore job was not started."

expect_grep "Restore OK" \
"$log_home/restore-full.out" \
"Restore job was not successful"

check_restore_diff "${BackupDirectory}"
end_test

0 comments on commit 0abd660

Please sign in to comment.