tools/testbuild.sh: update fail to return the error value instead
This commit is contained in:
parent
e9bc32cdbc
commit
57099fe441
1 changed files with 3 additions and 3 deletions
|
|
@ -154,7 +154,7 @@ cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; }
|
|||
function distclean {
|
||||
if [ -f .config ]; then
|
||||
echo " Cleaning..."
|
||||
${MAKE} ${JOPTION} ${MAKE_FLAGS} distclean 1>/dev/null || fail=1
|
||||
${MAKE} ${JOPTION} ${MAKE_FLAGS} distclean 1>/dev/null || fail=$?
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -183,7 +183,7 @@ function configure {
|
|||
echo "$toolchain=y" >> $nuttx/.config
|
||||
|
||||
echo " Refreshing..."
|
||||
${MAKE} ${MAKE_FLAGS} olddefconfig 1>/dev/null || fail=1
|
||||
${MAKE} ${MAKE_FLAGS} olddefconfig 1>/dev/null || fail=$?
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -192,7 +192,7 @@ function configure {
|
|||
function build {
|
||||
echo " Building NuttX..."
|
||||
echo "------------------------------------------------------------------------------------"
|
||||
${MAKE} ${JOPTION} ${MAKE_FLAGS} 1>/dev/null || fail=1
|
||||
${MAKE} ${JOPTION} ${MAKE_FLAGS} 1>/dev/null || fail=$?
|
||||
}
|
||||
|
||||
# Coordinate the steps for the next build test
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue