Skip to content

Commit 384af2d

Browse files
liuguo09xiaoxiang781216
authored andcommitted
Call testbuild.sh with -x option to set it fail fast for check build error
For PR check build, call testbuild.sh with -x option to set it fail fast if build error occured. Note that for full build, it keeps on going build anyway. Change-Id: I46b77cc4632dd2c8e1749ab81a275fa1ff5a505c Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
1 parent ca27fd6 commit 384af2d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cibuild.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,13 @@ function install_tools {
172172

173173
function run_builds {
174174
local ncpus=`grep -c ^processor /proc/cpuinfo`
175+
local options="-si -j $ncpus"
175176

176-
$nuttx/tools/testbuild.sh -si -j $ncpus $WD/testlist/${build}list.dat
177-
if [ $? != 0 ]; then
178-
echo "ERROR: $BUILD build failed (error $?)"
179-
exit 1
177+
if [ "X$build" = "Xcheck" ]; then
178+
options="$options -x"
180179
fi
180+
181+
$nuttx/tools/testbuild.sh $options $WD/testlist/${build}list.dat
181182
}
182183

183184
if [ -z "$1" ]; then

0 commit comments

Comments
 (0)