Show passes and fails

This commit is contained in:
Bob Mottram 2016-12-01 10:47:04 +00:00
parent 1a1e8826a6
commit 1c392150aa
1 changed files with 12 additions and 3 deletions

View File

@ -1093,10 +1093,19 @@ function test_stig {
output "V-58901" $? ${SETLANG}
################
if [ $FAILS -gt 0 ]; then
show_passes_fails=
if [ $SHOW_ALL_TESTS ]; then
show_passes_fails=1
else
if [ $FAILS -gt 0 ]; then
show_passes_fails=1
fi
fi
if [ $show_passes_fails ]; then
echo ''
echo "Passes: $PASSES"
echo "Fails: $FAILS"
echo $"Passes: $PASSES"
echo $"Fails: $FAILS"
if [ $FAILS -gt 0 ]; then
exit 792353
fi