summaryrefslogtreecommitdiff
path: root/tsp/scripts/log.sh
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2017-10-20 11:34:24 (GMT)
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-10-25 16:47:42 (GMT)
commit887e0082ab2afe570d7c8ff8d958c04d3e855da1 (patch)
tree6b334f4fca144261eee509d29e15a31e99f852be /tsp/scripts/log.sh
parent0a3a82c65435de917c989a5f461a4a02c716a085 (diff)
downloadmajor-887e0082ab2afe570d7c8ff8d958c04d3e855da1.zip
major-887e0082ab2afe570d7c8ff8d958c04d3e855da1.tar.gz
major-887e0082ab2afe570d7c8ff8d958c04d3e855da1.tar.bz2
Do not log execution times of jobs shorter than 8srefs/changes/41/181841/1
Change-Id: I924fa2f8b6c014fbd0d5d01039289699b38608f6
Diffstat (limited to 'tsp/scripts/log.sh')
-rwxr-xr-xtsp/scripts/log.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tsp/scripts/log.sh b/tsp/scripts/log.sh
index 43fe5f4..eb6b398 100755
--- a/tsp/scripts/log.sh
+++ b/tsp/scripts/log.sh
@@ -28,6 +28,6 @@ QUEUE="$(echo "${TMPDIR##*/}" | tr '-' '_')"
# tsp will refer to the proper queue, because TMPDIR is passed here
EXECUTION_TIME=$(tsp -i "$JOBID" | grep "Time run" | grep -o "[0-9]\+\.[0-9]\+")
# Skip jobs below 1s execution time
-test "${EXECUTION_TIME%%.*}" -ge "1" && \
+test "${EXECUTION_TIME%%.*}" -ge "8" && \
post_prom "ts_execution_time_$QUEUE" "$EXECUTION_TIME" "Execution time for the $QUEUE queue"
post_prom "ts_exit_status_$QUEUE" "$EXIT_STATUS" "Exit status for the $QUEUE queue"