This allows the test suite to run to completion even if one test
fails.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
testdir="tests"
logdir="$testdir/logs"
logsave=0
testdir="tests"
logdir="$testdir/logs"
logsave=0
# Check whether to run multipath tests
modprobe multipath 2> /dev/null
# Check whether to run multipath tests
modprobe multipath 2> /dev/null
if [ "$savelogs" == "1" ]; then
cp $targetdir/log $logdir/$_basename.log
fi
if [ "$savelogs" == "1" ]; then
cp $targetdir/log $logdir/$_basename.log
fi
- if [ "$_fail" == "1" ]; then
+ if [ "$_fail" == "1" -a "$exitonerror" == "1" ]; then
do_help() {
echo "Usage: "
do_help() {
echo "Usage: "
- echo " $0 [--tests=<test1,test2,..>] [--disable-multipath] [--logdir] [--save-logs] [setup] [prefix]"
+ echo " $0 [--tests=<test1,test2,..>] [--disable-multipath] [--logdir] [--save-logs] [--no-error] [setup] [prefix]"
+ --no-error)
+ exit_on_error=0
+ ;;
--disable-multipath)
unset MULTIPATH
;;
--disable-multipath)
unset MULTIPATH
;;