From e918b62c16db68df2117799d88bdab96f22da3b1 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 15 Aug 2009 15:39:39 +0200 Subject: [PATCH] Give virtual-changer-test a poll interval so it works again --- regress/scripts/bacula-sd-2disk-drive.conf.in | 2 ++ regress/tests/virtual-changer-test | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/regress/scripts/bacula-sd-2disk-drive.conf.in b/regress/scripts/bacula-sd-2disk-drive.conf.in index 614301dcfe..00f88325fd 100644 --- a/regress/scripts/bacula-sd-2disk-drive.conf.in +++ b/regress/scripts/bacula-sd-2disk-drive.conf.in @@ -83,6 +83,7 @@ Device { AlwaysOpen = yes; RemovableMedia = yes; Maximum Concurrent Jobs = 3 + Volume Poll Interval = 15 # Maximum File Size = 1000000 } @@ -97,6 +98,7 @@ Device { AlwaysOpen = yes; RemovableMedia = yes; Maximum Concurrent Jobs = 3 + Volume Poll Interval = 15 # Maximum File Size = 1000000 } diff --git a/regress/tests/virtual-changer-test b/regress/tests/virtual-changer-test index 7762b3dc66..7c06fcbfc9 100755 --- a/regress/tests/virtual-changer-test +++ b/regress/tests/virtual-changer-test @@ -8,6 +8,16 @@ # This test the SD Virtual autochanger feature. It is a disk based # "autochanger", but does not use any changer script. # +# Note, because we limit each drive to a maximum of 3 jobs, +# the first three start on Drive-0, and the second three start +# on drive-1 (Prefer Mounted Volumes = no). Thus since there +# is only one Volume (TestVolume001) that is valid, three jobs +# block and ask the user to create a new volume. However, at some +# point, the first three jobs finish and free up TestVolum001, and +# Since we set a poll interval of 15 seconds, after a short wait +# TestVolume001 will be mounted on drive-1 and the job will +# complete. This tests a good number of things. +# TestName="virtual-changer-test" JobName="virtualchangertest" . scripts/functions -- 2.39.5