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 {
|
function makefunc {
|
||||||
${MAKE} $@
|
${MAKE} $@
|
||||||
if [ $? != 0 ]; then
|
ret=$?
|
||||||
fail=$?
|
if [ $ret != 0 ]; then
|
||||||
|
fail=$ret
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue