Revision: 74296
http://sourceforge.net/p/brlcad/code/74296
Author: brlcad
Date: 2019-11-05 20:45:00 +0000 (Tue, 05 Nov 2019)
Log Message:
-----------
replacing FAILURES with STATUS. uncovered a bug; test was always returning true
as FAILED is not a variable defined.
Modified Paths:
--------------
brlcad/trunk/regress/red.sh
Modified: brlcad/trunk/regress/red.sh
===================================================================
--- brlcad/trunk/regress/red.sh 2019-11-05 20:42:29 UTC (rev 74295)
+++ brlcad/trunk/regress/red.sh 2019-11-05 20:45:00 UTC (rev 74296)
@@ -57,7 +57,7 @@
exit 1
fi
-FAILURES=0
+STATUS=0
# make our starting database
@@ -114,8 +114,8 @@
fi
if test "x`diff $1 $2`" = "x" ; then
log "ERROR: comparison failed ($1 and $2 are identical, expected
change)"
- FAILURES="`expr $FAILURES + 1`"
- export FAILURES
+ STATUS="`expr $STATUS + 1`"
+ export STATUS
fi
}
@@ -136,8 +136,8 @@
if test "x`diff $1 $2`" != "x" ; then
log "ERROR: comparison failed ($1 and $2 are different, expected no
change)"
run diff -u $1 $2
- FAILURES="`expr $FAILURES + 1`"
- export FAILURES
+ STATUS="`expr $STATUS + 1`"
+ export STATUS
fi
}
@@ -531,13 +531,13 @@
should_be_same $MATRIX $REDFILE.new
-if test $FAILURES -eq 0 ; then
+if test $STATUS -eq 0 ; then
log "-> mged 'red' check succeeded"
else
log "-> mged 'red' check FAILED, see $LOGFILE"
fi
-exit $FAILED
+exit $STATUS
# Local Variables:
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits