]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/cleanup-tape.in
Fail tests requiring tape drive if none present
[bacula/bacula] / regress / scripts / cleanup-tape.in
1 #!/bin/sh
2 #
3 # Cleanup left over files -- both before and after test run
4 #
5 scripts/cleanup
6
7 a=`bin/mtx-changer @autochanger@ loaded 0 @tape_drive@ 0`
8 if test $a = 0 ; then
9   bin/mtx-changer @autochanger@ load 1 @tape_drive@ 0
10 fi
11 mt -f @tape_drive@ rewind
12 mt -f @tape_drive@ weof