Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
make tape tests fail if tape is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Sep 30, 2016
1 parent 3420af8 commit 0a1f4de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/functions
Expand Up @@ -98,23 +98,23 @@ require_tape_drive()
{
if test x${TAPE_DRIVE} = x/dev/null ; then
echo "This test $TestName needs a tape drive, but has none."
exit 0
exit 1
fi
}

require_second_drive()
{
if test x${TAPE_DRIVE1} = x/dev/null ; then
echo "This test $TestName has a Job $JobName which needs a second drive, but has none."
exit 0
exit 1
fi
}

require_autochanger()
{
if test x${AUTOCHANGER} = x/dev/null ; then
echo "This test $TestName needs an autochanger, but has none."
exit 0
exit 1
fi
}

Expand All @@ -123,15 +123,15 @@ require_linux()
os=`uname`
if [ $os != 'Linux' ]; then
echo "This test $TestName runs only on Linux"
exit 0
exit 1
fi
}

skip_if_no_autochanger()
{
if test x${AUTOCHANGER} = x/dev/null ; then
echo "$TestName test skipped. No autochanger."
exit
exit 1
fi
}

Expand Down

0 comments on commit 0a1f4de

Please sign in to comment.