From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Mon, 20 Apr 2020 07:38:27 +0200 Subject: [PATCH v2] travis: Correct error checking when building boards In-Reply-To: <20200419230232.189273-1-sjg@chromium.org> References: <20200419230232.189273-1-sjg@chromium.org> Message-ID: <7acfbef3-d90f-dad8-f1c0-d71c103f3dfa@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 20. 04. 20 1:02, Simon Glass wrote: > At present if buildman reports an error, the travis build still succeeds. > > This is because the travis script does not stop when it sees errors; nor > does it automatically return the exit code. Also the current error > checking never triggers since 'ret' is not set. > > Fix this by setting 'ret' correctly. > > Signed-off-by: Simon Glass > Reported-by: Michal Simek > --- > > Changes in v2: > - Fix missing ret=0 > > .travis.yml | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/.travis.yml b/.travis.yml > index b3253da13c..1dbc63cadf 100644 > --- a/.travis.yml > +++ b/.travis.yml > @@ -208,7 +208,8 @@ script: > # > # Build a selection of boards if TEST_PY_BD is empty > - if [[ "${BUILDMAN}" != "" ]]; then > - tools/buildman/buildman -P -E -W ${BUILDMAN} ${OVERRIDE}; > + ret=0 > + tools/buildman/buildman -P -E -W ${BUILDMAN} ${OVERRIDE} || ret=$?; > if [[ $ret -ne 0 ]]; then > tools/buildman/buildman -seP ${BUILDMAN}; > exit $ret; > Acked-by: Michal Simek Thanks, Michal