automated: linux: ltp: skip logs for passing tests

It's very unlikely that someone is going to look into passing tests.
This helps reduce even more the demand for storage of test results.

Signed-off-by: Antonio Terceiro <antonio.terceiro@linaro.org>
diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh
index 9a4a433..ca278a0 100755
--- a/automated/linux/ltp/ltp.sh
+++ b/automated/linux/ltp/ltp.sh
@@ -161,9 +161,14 @@
 }
 
 parse_ltp_json_results() {
+    local result
     jq -r '.results| .[]| "\(.test_fqn) \(.test.result)"'  "$1" \
         | sed 's/brok/fail/; s/conf/skip/'  >> "${RESULT_FILE}"
     for test_fqn in $(jq -r '.results| .[]| .test_fqn' "$1"); do
+      result="$(jq -r '.results | .[] | select(.test_fqn == "'"${test_fqn}"'") | .test.result' "$1")"
+      if [ "${result}" = pass ]; then
+        continue
+      fi
       jq -r '.results | .[] | select(.test_fqn == "'"${test_fqn}"'") | .test.log' "$1" > ${OUTPUT}/${test_fqn}.log
     done
 }