diff options
author | 2019-04-30 17:13:01 +0200 | |
---|---|---|
committer | 2019-04-30 15:57:31 +0000 | |
commit | 20dc79fd69d0f488abb6f2528d8435ea28952013 (patch) | |
tree | 6d150ae2f8593782ef94076a591d00cbedb84f6a /jjb/common/include-agl-lava-jobs-submit.sh | |
parent | aafe45538122a03b7b507c973a1aa5885eb58851 (diff) |
This section needs special handling
TODO: rewrite to run under set -e !
Change-Id: I4f26d8e5de03d2a16a6b8c8825ce7bc9df8da5d4
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/common/include-agl-lava-jobs-submit.sh')
-rw-r--r-- | jjb/common/include-agl-lava-jobs-submit.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jjb/common/include-agl-lava-jobs-submit.sh b/jjb/common/include-agl-lava-jobs-submit.sh index 7b28ed42..0177c9bd 100644 --- a/jjb/common/include-agl-lava-jobs-submit.sh +++ b/jjb/common/include-agl-lava-jobs-submit.sh @@ -31,6 +31,7 @@ echo "THe job id is: ${job_id}" JOB_URL="${url}scheduler/job/${job_id}" echo "Submitted as job: $JOB_URL" +set -x # # LAVA job details, get job status from lavacli output # @@ -43,6 +44,8 @@ if [ -z $JOB_TIMEOUT ]; then JOB_TIMEOUT=360 fi +# FIXME: this section needs to run under set +e +set +e for i in $(seq 1 $JOB_TIMEOUT); do lavacli -i $lab jobs show $job_id --yaml > $JOB_STATUS if [ $? -ne 0 ];then @@ -58,6 +61,9 @@ for i in $(seq 1 $JOB_TIMEOUT); do fi sleep 10 done +set -e +# enable set -e again + if [ $i -ge $JOB_TIMEOUT ];then echo "ERROR: job did not finished before 1 hour" exit 1 |