When `set -o errexit` is enabled in script, the non-zero return value
from `diff` is considered as an error. But actually diff returns 1 when
difference is found. The error exit option should be disabled when dealing
`diff`.
Change-Id: I6270ec8f7036b3d752736a80474468e26a613585
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
         curl -s -X GET "${storperf_api}/jobs?id=$JOB&type=status" \
             -o $WORKSPACE/status.json
         JOB_STATUS=`cat $WORKSPACE/status.json | awk '/Status/ {print $2}' | cut -d\" -f2`
+
+        set +o errexit # disable error exit checking for diff
         diff $WORKSPACE/status.json $WORKSPACE/old-status.json >/dev/null
         if [ $? -eq 1 ]
         then
             cat $WORKSPACE/status.json
         fi
+        set -o errexit
+
     done
 
     echo