Fix the status problem of lavacli 21/21221/1
authorKhouloud Touil <ktouil@baylibre.com>
Wed, 1 May 2019 13:02:57 +0000 (15:02 +0200)
committerKhouloud Touil <ktouil@baylibre.com>
Wed, 1 May 2019 13:07:36 +0000 (15:07 +0200)
When using --yaml option to show the job information the 'Health' is no
longer with capital 'H'. This patch change the 'Health" to 'health'.

Change-Id: Ifd463b4aee9ca90bbaa017e2f409a5105cec3e93
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
jjb/common/include-agl-lava-jobs-submit.sh

index ae98042..9c00d32 100644 (file)
@@ -55,7 +55,7 @@ for i in $(seq 1 $JOB_TIMEOUT); do
     fi
     state=$(grep ^state: $JOB_STATUS| cut -d' ' -f2)
     if [ $state == "Finished" ]; then
-               status=$(grep ^Health: $JOB_STATUS| cut -d' ' -f2)
+               status=$(grep ^health: $JOB_STATUS| cut -d' ' -f2)
                echo "LAVA job $job_id completed with status: $status"
                break
     fi