Subject: Re: [xenomai-images][PATCH 6/6] ci: Fail test job when an error occurred during lava job submission References: <20211013071824.9394-1-florian.bezdeka@siemens.com> <20211013071824.9394-7-florian.bezdeka@siemens.com> From: Jan Kiszka Message-ID: <414d5235-e971-dbc6-1cb2-06c5f805d20a@siemens.com> Date: Wed, 13 Oct 2021 09:28:14 +0200 MIME-Version: 1.0 In-Reply-To: <20211013071824.9394-7-florian.bezdeka@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Florian Bezdeka , xenomai@xenomai.org, Quirin Gylstorff On 13.10.21 09:18, Florian Bezdeka via Xenomai wrote: > It can happen that the LAVA job submission fails. If so, the CI job > should be marked as failed. Previously we had something like the > following in the log, but the job was still marked as "OK". > > Log: > connect to lava server: https://lava.xenomai.org > Deploy artifacts from 'https://xenomai-images-artifacts.s3.amazonaws.com/artifacts' > submit lava job > > > scripts/run-lava-tests.sh: 56: [: Illegal number: > > Signed-off-by: Florian Bezdeka > --- > scripts/run-lava-tests.sh | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/run-lava-tests.sh b/scripts/run-lava-tests.sh > index dde542c..de63b28 100755 > --- a/scripts/run-lava-tests.sh > +++ b/scripts/run-lava-tests.sh > @@ -9,6 +9,7 @@ > # > # SPDX-License-Identifier: MIT > # > +set -e > TARGET=$1 > if [ -z "${TARGET}" ]; then > echo "no target was given" > Is this resolving what we saw with lava.xenomai.org being down? Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux