You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/02/08 13:32:50 UTC

[incubator-nuttx] branch pr230 updated: tools/testbuild.sh: make sure fail get the real return error value

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch pr230
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/pr230 by this push:
     new 33b0b51  tools/testbuild.sh: make sure fail get the real return error value
33b0b51 is described below

commit 33b0b51d32cc8034ceea64675a77b8fd676c3bd2
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Sat Feb 8 11:40:29 2020 +0800

    tools/testbuild.sh: make sure fail get the real return error value
    
    Change-Id: I9754a797e9bbf45749d19b0fd53ce7dd2693e476
    Signed-off-by: liuhaitao <li...@xiaomi.com>
---
 tools/testbuild.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/testbuild.sh b/tools/testbuild.sh
index 16ccd70..5985c03 100755
--- a/tools/testbuild.sh
+++ b/tools/testbuild.sh
@@ -151,8 +151,9 @@ cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; }
 
 function makefunc {
   ${MAKE} $@
-  if [ $? != 0 ]; then
-    fail=$?
+  ret=$?
+  if [ $ret != 0 ]; then
+    fail=$ret
   fi
 }