From: Aleksander Mistewicz Date: Fri, 20 Oct 2017 11:34:24 +0000 (+0200) Subject: Do not log execution times of jobs shorter than 8s X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=887e0082ab2afe570d7c8ff8d958c04d3e855da1;p=tools%2Ftestlab%2Fmajor.git Do not log execution times of jobs shorter than 8s Change-Id: I924fa2f8b6c014fbd0d5d01039289699b38608f6 --- 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"