]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl tweak to use existing scripts (and be compatible with vtape)
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 21 Jun 2008 18:02:21 +0000 (18:02 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 21 Jun 2008 18:02:21 +0000 (18:02 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7208 91ce42f0-d328-0410-95d8-f526ca767f89

regress/tests/two-vol-manual-tape

index 888cfd81f4b17eef9330a8ca27af10b950e134fb..0eae8e2ed9ffdc68c26ff1eea01a42d3514efe36 100755 (executable)
@@ -11,34 +11,10 @@ JobName=twovolmanualtape
 require_tape_drive
 require_autochanger
 
-scripts/cleanup
+scripts/cleanup-tape
 scripts/copy-tape-confs
 echo "${cwd}/build" >${cwd}/tmp/file-list
 
-# Get a tape in the drive either from slot 1 or slot 2
-slot=`bin/mtx-changer ${AUTOCHANGER} loaded 0 ${TAPE_DRIVE} $DRIVE1`
-case $slot in
- 0)
-    bin/mtx-changer ${AUTOCHANGER} load $SLOT1 ${TAPE_DRIVE} $DRIVE1
-    slot=$SLOT1
-    ;;
- $SLOT1)
-    slot=$SLOT1
-    ;;
- $SLOT2)
-    slot=$SLOT2
-    ;;
- default)
-    mt -f ${TAPE_DRIVE} rewind                
-    bin/mtx-changer ${AUTOCHANGER} unload $slot ${TAPE_DRIVE} $DRIVE1
-    bin/mtx-changer ${AUTOCHANGER} load $SLOT1 ${TAPE_DRIVE} $DRIVE1
-    slot=$SLOT1
-    ;;
-esac
-mt -f ${TAPE_DRIVE} rewind
-mt -f ${TAPE_DRIVE} weof
-
-
 change_jobname $JobName
 start_test