diff mbox series

[isar-cip-core,1/4] ci: submit_lava: Fix reporting of submission errors

Message ID 7e065a7e100711d195149556390ad2eb276b57bb.1719642474.git.jan.kiszka@siemens.com (mailing list archive)
State Accepted
Headers show
Series ci: add LAVA live output, fix and clean up submission script | expand

Commit Message

Jan Kiszka June 29, 2024, 6:27 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

Errors are collected in the global ERROR variable. Lower-case error is
just a local variable in check_status.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 scripts/submit_lava.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/submit_lava.sh b/scripts/submit_lava.sh
index 4b1b6711..2464c291 100755
--- a/scripts/submit_lava.sh
+++ b/scripts/submit_lava.sh
@@ -146,7 +146,7 @@  submit_job() {
 		echo "Submitting $1 to LAVA master..."
 		# Catch error that occurs if invalid yaml file is submitted
 		# shellcheck disable=2086
-		ret=$(lavacli $LAVACLI_ARGS jobs submit "$1") || error=true
+		ret=$(lavacli $LAVACLI_ARGS jobs submit "$1") || ERROR=true
 
 		if [[ $ret != [0-9]* ]]
 		then