summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xresources/ansible_roles/storperf/files/start_job.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/resources/ansible_roles/storperf/files/start_job.sh b/resources/ansible_roles/storperf/files/start_job.sh
index 19ddbd2f..79057298 100755
--- a/resources/ansible_roles/storperf/files/start_job.sh
+++ b/resources/ansible_roles/storperf/files/start_job.sh
@@ -99,11 +99,15 @@ else
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