Skip to content

Commit d99593f

Browse files
committed
automated: linux: ltp: publish log files for kirk runs
kirk produces a JSON results file with the logs already collected, what's very convenient. Signed-off-by: Antonio Terceiro <antonio.terceiro@linaro.org>
1 parent 3951302 commit d99593f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

automated/linux/ltp/ltp.sh

+3
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ parse_ltp_output() {
163163
parse_ltp_json_results() {
164164
jq -r '.results| .[]| "\(.test_fqn) \(.test.result)"' "$1" \
165165
| sed 's/brok/fail/; s/conf/skip/' >> "${RESULT_FILE}"
166+
for test_fqn in $(jq -r '.results| .[]| .test_fqn' "$1"); do
167+
jq -r '.results | .[] | select(.test_fqn == "'"${test_fqn}"'") | .test.log' "$1" > ${OUTPUT}/${test_fqn}.log
168+
done
166169
}
167170

168171
# Run LTP test suite

0 commit comments

Comments
 (0)