mirror of
https://github.com/apache/nuttx.git
synced 2025-12-07 18:12:33 +08:00
tools/testbuild.sh: make sure fail get the real return error value
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user