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:34:16 UTC
[incubator-nuttx] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 48f1793 tools/testbuild.sh: make sure fail get the real return error value
48f1793 is described below
commit 48f1793a600030087fe03f883c9e62cb38921fdc
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
---
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
}