]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Fix read-only-device-test
authorEric Bollengier <eric@baculasystems.com>
Tue, 20 Dec 2022 08:49:42 +0000 (09:49 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:00 +0000 (13:57 +0200)
regress/tests/read-only-device-test

index 7a0804a1758c418b1cef257688af7ec55b1b0bce..6a24f47acbe35ce637eef9b0aadef757d6216ea8 100755 (executable)
@@ -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