From ed1e2f3321c9c2282400aa108e608eb0a27a609e Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Fri, 3 Oct 2014 11:48:21 +0200 Subject: [PATCH] fix utils/test/runtests-py*.sh exitcode utils/test/runtests-py*.sh always exits with $? = 1 even if there is no error. This is caused by the last executed command, test -n This patch changes it to test -z so that we'll get $? = 0 if all tests succeed. Acked-by: Seth Arnold --- utils/test/runtests-py3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/test/runtests-py3.sh b/utils/test/runtests-py3.sh index d623a5860..f8d7e39f5 100755 --- a/utils/test/runtests-py3.sh +++ b/utils/test/runtests-py3.sh @@ -24,7 +24,7 @@ for file in *.py ; do echo done -test -n "$failed" && { +test -z "$failed" || { echo echo "*** The following tests failed:" echo "*** $failed"