]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Add check for bvfs restore in plugin-objects-test
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Thu, 5 Nov 2020 14:02:32 +0000 (15:02 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:58 +0000 (09:02 +0100)
regress/tests/plugin-objects-test

index e5e2ae9ddadd17fa12da53a34234b616560d8314..395912d8c57c7f958fc265f11b256bd6a78cd852 100755 (executable)
@@ -151,7 +151,7 @@ setdebug level=15 tags=bvfs,sql trace=1 dir
 wait
 messages
 @$out $tmp/log8.out
-restore file=?b21$$ where=$tmp/bacula-restore2 yes
+restore file=?b21$$ where=$tmp/bacula-restore-bvfs yes
 wait
 messages
 quit
@@ -159,6 +159,12 @@ END_OF_DATA
 
 run_bconsole
 
+# Check if restored file exists
+if [ ! -f $tmp/bacula-restore-bvfs/@testplugin/test.zero ]; then
+   print_debug "Failed to restore object using bvfs, file not found!"
+   rstat=1
+fi
+
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 messages
 @# now do a restore