tools/testbuild.sh: make sure fail get the real return error value
This commit is contained in:
parent
a8de37fbec
commit
48f1793a60
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue