From: Eric Bollengier Date: Tue, 20 Dec 2022 08:49:42 +0000 (+0100) Subject: regress: Fix read-only-device-test X-Git-Tag: Beta-15.0.0~305 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeba8f3630da1ec40dd04f34592462f9640c9284;p=thirdparty%2Fbacula.git regress: Fix read-only-device-test --- diff --git a/regress/tests/read-only-device-test b/regress/tests/read-only-device-test index 7a0804a17..6a24f47ac 100755 --- a/regress/tests/read-only-device-test +++ b/regress/tests/read-only-device-test @@ -20,9 +20,8 @@ $bperl -e 'add_attribute("$conf/bacula-dir.conf", "Label Format", "Vol", "Pool", $bperl -e 'add_attribute("$conf/bacula-dir.conf", "SpoolData", "no", "Job")' $bperl -e 'add_virtual_changer("v1", 10)' -$bperl -e 'add_attribute("$conf/bacula-sd.conf", "ReadOnly", "yes", "Device", "Drive-8")' -$bperl -e 'add_attribute("$conf/bacula-sd.conf", "ReadOnly", "yes", "Device", "Drive-9")' -$bperl -e 'add_attribute("$conf/bacula-sd.conf", "LabelMedia", "yes", "Device")' +$bperl -e 'add_attribute("$conf/bacula-sd.conf", "ReadOnly", "yes", "Device", "v1-Drive-8")' +$bperl -e 'add_attribute("$conf/bacula-sd.conf", "ReadOnly", "yes", "Device", "v1-Drive-9")' disable_plugins @@ -63,15 +62,15 @@ stop_bacula check_two_logs #check_restore_diff -grep 'Using Device "Drive-8" to read' $tmp/log2.out > /dev/null +grep 'Using Device "v1-Drive-8" to read' $tmp/log2.out > /dev/null if [ $? != 0 ]; then - print_debug "ERROR: Should find Drive-8 in the restore job in $tmp/log2.out" + print_debug "ERROR: Should find v1-Drive-8 in the restore job in $tmp/log2.out" rstat=1 fi -grep 'Using Device "Drive-0" to write' $tmp/log1.out > /dev/null +grep 'Using Device "v1-Drive-0" to write' $tmp/log1.out > /dev/null if [ $? != 0 ]; then - print_debug "ERROR: Should find Drive-0 in the backup job in $tmp/log1.out" + print_debug "ERROR: Should find v1-Drive-0 in the backup job in $tmp/log1.out" bstat=1 fi