From: Florian Bezdeka Subject: [xenomai-images][PATCH 6/6] ci: Fail test job when an error occurred during lava job submission Date: Wed, 13 Oct 2021 09:18:24 +0200 Message-Id: <20211013071824.9394-7-florian.bezdeka@siemens.com> In-Reply-To: <20211013071824.9394-1-florian.bezdeka@siemens.com> References: <20211013071824.9394-1-florian.bezdeka@siemens.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain MIME-Version: 1.0 List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org 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" -- 2.31.1