From 69a5306664508cd83824080935761c82ce783a2b Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sun, 1 Jun 2008 08:02:56 +0000 Subject: [PATCH] ebl prepare for faketape tests git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@7080 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/prepare-two-tapes.in | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/regress/scripts/prepare-two-tapes.in b/regress/scripts/prepare-two-tapes.in index 28eea0b593..73ad83c879 100755 --- a/regress/scripts/prepare-two-tapes.in +++ b/regress/scripts/prepare-two-tapes.in @@ -8,13 +8,12 @@ scripts/cleanup if test x@autochanger@ != x/dev/null; then - slot=`bin/mtx-changer @autochanger@ loaded 0 dummy $DRIVE1` + slot=`bin/@changer_script@ @autochanger@ loaded 0 dummy $DRIVE1` if test "x${slot}" != "x$SLOT2"; then - bin/mtx-changer @autochanger@ unload $slot @tape_drive@ $DRIVE1 - bin/mtx-changer @autochanger@ load $SLOT2 @tape_drive@ $DRIVE1 + bin/@changer_script@ @autochanger@ unload $slot @tape_drive@ $DRIVE1 + bin/@changer_script@ @autochanger@ load $SLOT2 @tape_drive@ $DRIVE1 fi - mt -f @tape_drive@ rewind - mt -f @tape_drive@ weof + init_drive @tape_drive@ fi @@ -22,12 +21,12 @@ fi # If we have an autochanger always load tape in slot 1 # if test x@autochanger@ != x/dev/null; then - slot=`bin/mtx-changer @autochanger@ loaded 0 dummy $DRIVE1` + slot=`bin/@changer_script@ @autochanger@ loaded 0 dummy $DRIVE1` if test "x${slot}" != "x$SLOT1"; then - bin/mtx-changer @autochanger@ unload $slot @tape_drive@ $DRIVE1 - bin/mtx-changer @autochanger@ load $SLOT1 @tape_drive@ $DRIVE1 + bin/@changer_script@ @autochanger@ unload $slot @tape_drive@ $DRIVE1 + bin/@changer_script@ @autochanger@ load $SLOT1 @tape_drive@ $DRIVE1 fi fi -mt -f @tape_drive@ rewind -mt -f @tape_drive@ weof +init_drive @tape_drive@ + -- 2.39.5