# 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
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);