URI: 
       truntests now returns 1 if at least one error has occurred, fix #153 - tomb - the crypto undertaker
  HTML git clone git://parazyd.org/tomb.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit ab425a327e9213fd685a274267900cba969e1790
   DIR parent a9bc4c2489681105a370a5dca68eb27fd4643b33
  HTML Author: Jaromil <jaromil@dyne.org>
       Date:   Thu, 23 Oct 2014 23:31:55 +0200
       
       runtests now returns 1 if at least one error has occurred, fix #153
       
       Diffstat:
         M extras/test/runtests                |       8 +++++++-
       
       1 file changed, 7 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/extras/test/runtests b/extras/test/runtests
       t@@ -7,6 +7,8 @@ source ${T} source
        dummypass=test
        dummypassnew=changetest
        
       +GLOBAL_RESULT=0
       +
        notice() { print; yes "${@}"; print; }
        error() { _warning "     ${@}"; }
        tt() {
       t@@ -261,7 +263,11 @@ for t in $tests; do
            echo "$t\t${results[$t]:-FAIL}"
        done
        
       +for r in ${(v)results}; do
       +    [[ "$r" == "SUCCESS" ]] || GLOBAL_RESULT=1
       +done
       +
        print "${#endloops} loop devices busy at end"
        print "Done. You can remove temporary leftovers from /tmp :"
        for i in `find /tmp -name '*tomb*' 2>/dev/null`; do ls -lh $i; done
       -return 0
       +return $GLOBAL_RESULT