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/02 14:12:25 UTC
[incubator-nuttx] branch pr199 updated: tools/testbuild.sh: update
fail to return the error value instead
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch pr199
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/pr199 by this push:
new 6ebf0ec tools/testbuild.sh: update fail to return the error value instead
6ebf0ec is described below
commit 6ebf0ec7d236c331aa2e76d937a17bbdc314fc29
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Sun Feb 2 10:29:28 2020 +0800
tools/testbuild.sh: update fail to return the error value instead
Change-Id: I8f2c3c3b2c3a3ac2d3be0330f3c79feb2c775c43
Signed-off-by: liuhaitao <li...@xiaomi.com>
---
tools/testbuild.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/testbuild.sh b/tools/testbuild.sh
index 59b0218..79561fa 100755
--- a/tools/testbuild.sh
+++ b/tools/testbuild.sh
@@ -154,7 +154,7 @@ cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; }
function distclean {
if [ -f .config ]; then
echo " Cleaning..."
- ${MAKE} ${JOPTION} ${MAKE_FLAGS} distclean 1>/dev/null || fail=1
+ ${MAKE} ${JOPTION} ${MAKE_FLAGS} distclean 1>/dev/null || fail=$?
fi
}
@@ -183,7 +183,7 @@ function configure {
echo "$toolchain=y" >> $nuttx/.config
echo " Refreshing..."
- ${MAKE} ${MAKE_FLAGS} olddefconfig 1>/dev/null || fail=1
+ ${MAKE} ${MAKE_FLAGS} olddefconfig 1>/dev/null || fail=$?
fi
}
@@ -192,7 +192,7 @@ function configure {
function build {
echo " Building NuttX..."
echo "------------------------------------------------------------------------------------"
- ${MAKE} ${JOPTION} ${MAKE_FLAGS} 1>/dev/null || fail=1
+ ${MAKE} ${JOPTION} ${MAKE_FLAGS} 1>/dev/null || fail=$?
}
# Coordinate the steps for the next build test