mirror of
https://github.com/apache/nuttx.git
synced 2025-12-08 02:32:54 +08:00
tools: Remove the temp variable in checking program exit code
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -158,10 +158,8 @@ blacklist=`grep "^-" $testfile || true`
|
||||
cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; }
|
||||
|
||||
function makefunc {
|
||||
${MAKE} ${MAKE_FLAGS} "${EXTRA_FLAGS}" $@ 1>/dev/null
|
||||
ret=$?
|
||||
if [ $ret != 0 ]; then
|
||||
fail=$ret
|
||||
if ! ${MAKE} ${MAKE_FLAGS} "${EXTRA_FLAGS}" $@ 1>/dev/null; then
|
||||
fail=1
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user