3 # Cleanup left over files -- both before and after test run
10 if test x@autochanger@ != x/dev/null; then
11 slot=`bin/mtx-changer @autochanger@ loaded 0 dummy $DRIVE1`
12 if test "x${slot}" != "x$SLOT2"; then
13 bin/mtx-changer @autochanger@ unload $slot @tape_drive@ $DRIVE1
14 bin/mtx-changer @autochanger@ load $SLOT2 @tape_drive@ $DRIVE1
16 mt -f @tape_drive@ rewind
17 mt -f @tape_drive@ weof
22 # If we have an autochanger always load tape in slot 1
24 if test x@autochanger@ != x/dev/null; then
25 slot=`bin/mtx-changer @autochanger@ loaded 0 dummy $DRIVE1`
26 if test "x${slot}" != "x$SLOT1"; then
27 bin/mtx-changer @autochanger@ unload $slot @tape_drive@ $DRIVE1
28 bin/mtx-changer @autochanger@ load $SLOT1 @tape_drive@ $DRIVE1
32 if test a$USE_FAKETAPE = a; then
33 mt -f @tape_drive@ rewind
34 mt -f @tape_drive@ weof
36 cp /dev/null @tape_drive@