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 <ProtocolError for https://[snip]/RPC2: 500 HTTPSConnectionPool(host='lava.xenomai.org', port=443): Read timed out. (read timeout=20.0)> <ProtocolError for https://[snip]/RPC2: 500 HTTPSConnectionPool(host='lava.xenomai.org', port=443): Read timed out. (read timeout=20.0)> scripts/run-lava-tests.sh: 56: [: Illegal number: Signed-off-by: Florian Bezdeka <[email protected]> --- 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.30.2
