if [ $? -ne 0 ]; then
echo "ERROR: Unable to validate json output in $tmp/1.json";
cat $tmp/1.json
- exit 1
+ estat=1
+ break
else
nb=`expr $nb + 1`
fi
done < $tmp/json.$$.list
if [ $nb = 0 ]; then
echo "ERROR: Unable to find json output in $tmp/json.$$.out"
- exit 1
+ estat=1
fi
fi
if [ "$CHECK_OPENFILE" != 0 ]; then
echo " !!!!! $TestName ${variant_name} failed!!! `date +%R:%S` !!!!! " >>test.out
echo " Files still open!!" >>test.out
echo " "
- exit 1
+ estat=1
fi
fi
fi
echo " !!!!! $TestName ${variant_name} failed!!! `date +%R:%S` !!!!! " >>test.out
echo " JobMedia is corrupted" >>test.out
echo " "
- exit 1
+ estat=1
fi
fi
if [ "$CHECK_ENCRYPTION" != 0 -a "$FORCE_ENCRYPTION" = yes ]; then
echo " !!!!! $TestName ${variant_name} failed!!! `date +%R:%S` !!!!! " >>test.out
echo " Encryption problem" >>test.out
echo " "
- exit 1
+ estat=1
fi
fi
if [ "$CHECK_JSON" != 0 ]; then
echo " !!!!! $TestName ${variant_name} failed!!! `date +%R:%S` !!!!! " >>test.out
echo " JSON Data is incorrect" >>test.out
echo " "
- exit 1
+ estat=1
fi
fi
if [ "x$FORCE_CLOUD" = xyes ]; then
echo " !!!!! $TestName ${variant_name} failed!!! `date +%R:%S` !!!!! " >>test.out
echo " SCSI lock still set" >>test.out
echo " "
- exit 1
+ estat=1
fi
}