]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add sleep in vtape changer to simulate real hardware
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 19 May 2009 14:39:33 +0000 (14:39 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 19 May 2009 14:39:33 +0000 (14:39 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8839 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/prepare-fake-autochanger.in

index 4f04849f43c1e9b3bee766ed42cb9faced3c6e16..4f0b3363597a29cd14816585780dbfd1e6884545 100644 (file)
@@ -15,6 +15,15 @@ cat > $adir/conf <<EOF
 maxdrive=8
 maxslot=80
 dbgfile=$adir/log
+
+case $2 in
+list|slots)
+   sleep 2
+   ;;
+*)
+   sleep 5
+   ;;
+esac
 EOF
 
 # turn on ach debug