add bug closure to changelog
[debian/amanda] / installcheck / Installcheck / Run.pm
index 5bf1b1067ec260090ce11e3a036fcac3b113688b..e3e29c3f66a72196aee92a282e3b1d44fc377a51 100644 (file)
@@ -1,5 +1,5 @@
 # vim:ft=perl
-# Copyright (c) 2008, 2009, 2010 Zmanda, Inc.  All Rights Reserved.
+# Copyright (c) 2008-2012 Zmanda, Inc.  All Rights Reserved.
 #
 # This program is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License version 2 as published
@@ -190,13 +190,15 @@ our $holdingdir ="$Installcheck::TMP/holding";
 
 sub setup {
     my $new_vtapes = shift;
+    my $nb_slot = shift;
     my $testconf = Installcheck::Config->new();
 
+    $nb_slot = 3 if !defined $nb_slot;
     (-d $diskname) or setup_backmeup();
     if ($new_vtapes) {
-       setup_new_vtapes($testconf, 3);
+       setup_new_vtapes($testconf, $nb_slot);
     } else {
-       setup_vtapes($testconf, 3);
+       setup_vtapes($testconf, $nb_slot);
     }
     setup_holding($testconf, 25);
     setup_disklist($testconf);