From: Michal Rakowski Date: Thu, 5 Nov 2020 14:02:32 +0000 (+0100) Subject: regress: Add check for bvfs restore in plugin-objects-test X-Git-Tag: Release-11.3.2~865 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eddd3969006babf46b8bda939f96b5757adc5194;p=thirdparty%2Fbacula.git regress: Add check for bvfs restore in plugin-objects-test --- diff --git a/regress/tests/plugin-objects-test b/regress/tests/plugin-objects-test index e5e2ae9dd..395912d8c 100755 --- a/regress/tests/plugin-objects-test +++ b/regress/tests/plugin-objects-test @@ -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 <${cwd}/tmp/bconcmds messages @# now do a restore