mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
tools/testbuild.sh: make sure fail get the real return error value
This commit is contained in:
+3
-2
@@ -151,8 +151,9 @@ cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; }
|
|||||||
|
|
||||||
function makefunc {
|
function makefunc {
|
||||||
${MAKE} $@
|
${MAKE} $@
|
||||||
if [ $? != 0 ]; then
|
ret=$?
|
||||||
fail=$?
|
if [ $ret != 0 ]; then
|
||||||
|
fail=$ret
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user