X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=regress%2Ftests%2Fcopy-volume-test;h=2783299f38c063a9fea2f54a028cdded6cd446b9;hb=ade07b7afd278f819fbef347bd643c3328de54cb;hp=d11bb18af98b04bf965d0b3ef8968d776ca90765;hpb=c7bc89751bd3089a7e719881e55f45d6c905aace;p=bacula%2Fbacula diff --git a/regress/tests/copy-volume-test b/regress/tests/copy-volume-test index d11bb18af9..2783299f38 100755 --- a/regress/tests/copy-volume-test +++ b/regress/tests/copy-volume-test @@ -1,7 +1,7 @@ #!/bin/sh # # Run a backup of the Bacula build directory on two Volumes -# then migrate it to another device. +# then copy it to another device. # # This script uses the virtual disk autochanger and migration scripts # @@ -32,7 +32,7 @@ start_test # Write out bconsole commands cat <${cwd}/tmp/bconcmds -@output +@$out /dev/null messages @$out ${cwd}/tmp/log1.out label storage=File volume=FileVolume001 Pool=Default @@ -93,7 +93,6 @@ done yes wait messages -@output quit END_OF_DATA @@ -168,22 +167,22 @@ stop_bacula get_mig_info 1 ${cwd}/tmp/log11.out -if [ -z "$RET" -o "$RET" -eq 0 ]; then +if [ -z "$RET" -o "$RET" = 0 ]; then bstat=2 print_debug "The first job must have been copied" fi get_mig_info 2 ${cwd}/tmp/log11.out -if [ -z "$RET" -o "$RET" -ne 0 ]; then +if [ -n "$RET" ]; then bstat=2 - print_debug "The second job have no files, it can't have been copied" + print_debug "The second job has no files, it can't have been copied" fi JOBID=`awk -F= '/Job queued. JobId/ {if(!f){print $2; f=1;}}' ${cwd}/tmp/log4.out` get_mig_info $JOBID ${cwd}/tmp/log4.out -if [ -z "$RET" -o "$RET" -eq 0 ]; then +if [ -z "$RET" -o "$RET" = 0 ]; then bstat=2 print_debug "The new incremental job must have been copied" fi