X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Fscripts%2Fcleanup-tape.in;h=98ed537766fead1e88c5b059154e9100fdf565b9;hb=6d7bed625a936b4485678b6d1ce94eb284ee9afc;hp=64ad92f31b26fb4d78eb35e56418b290c43b10ee;hpb=1c6e474676059e915380595e0394bd70f8d24495;p=bacula%2Fbacula diff --git a/regress/scripts/cleanup-tape.in b/regress/scripts/cleanup-tape.in index 64ad92f31b..98ed537766 100755 --- a/regress/scripts/cleanup-tape.in +++ b/regress/scripts/cleanup-tape.in @@ -2,20 +2,7 @@ # # Cleanup left over files -- both before and after test run # -rm -rf /tmp/TestVolume001 /tmp/bacula-restores /tmp/Small* -rm -rf tmp/original tmp/bacula-restores tmp/Small* tmp/TestVolume* -rm -rf tmp/restored tmp/largefile tmp/bscan.bsr tmp/log*.out - -# -# If we have an autochanger always load tape in slot 1 -# -if ! test x@autochanger@ = x/dev/null; then - drive=`bin/mtx-changer @autochanger@ loaded` - if ! test x$drive = x1; then - bin/mtx-changer @autochanger@ unload - bin/mtx-changer @autochanger@ load 1 - fi -fi +scripts/cleanup mt -f @tape_drive@ rewind mt -f @tape_drive@ weof