X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2452d39120085af8c43433a82eccd26f482f4437..70a3fbf967717678e2edd0fb2c992e5a2c59a2b0:/test/common.sh.in diff --git a/test/common.sh.in b/test/common.sh.in index ff06312f..70214127 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -35,7 +35,7 @@ output_md5() #### the same line, the caller needs to add it. This avoids #### differences due to a leading '*' binary file indicator, for #### text files, on some platforms (Cygwin). - @MD5SUM@ $* | @MD5FMT@ | cut -d ' ' -f 1 + @MD5SUM@ $* | @MD5FMT@ | awk '{print $1}' } #### Use built-in $((...)) in test suite if shell supports it. @@ -166,6 +166,8 @@ check() { echo echo "$0: test failed, outputs are in $first and $second." failed=`expr ${failed:-0} + 1` + #### Set return status of the function. + [ $failed -eq 0 ] fi }