diff options
author | mwasilew <milosz.wasilewski@linaro.org> | 2020-12-09 09:07:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 09:07:02 +0000 |
commit | 6a942b49fa30da364ec0e9dab7fddbf712fd8d4f (patch) | |
tree | 3aec6f6573dba44681d6b1d4dd06d313ff68a666 | |
parent | 121bc6b6ff29e5537dc6888ba29c2199d0acad8c (diff) | |
parent | 15a43e3e085a9153b8d7a98008c4441762006453 (diff) |
Merge pull request #256 from nareshkamboju/master
fwts: improve results parser
-rwxr-xr-x | automated/linux/fwts/fwts.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/automated/linux/fwts/fwts.sh b/automated/linux/fwts/fwts.sh index b8b39f0..4023403 100755 --- a/automated/linux/fwts/fwts.sh +++ b/automated/linux/fwts/fwts.sh @@ -121,6 +121,7 @@ parse_fwts_test_results() { sed -i -e 's/://g' "${TEST_PASS_LOG}" sed -i -e 's/,//g' "${TEST_PASS_LOG}" sed -i -e 's/\\//g' "${TEST_PASS_LOG}" + sed -i -e 's/\//-/g' "${TEST_PASS_LOG}" awk '{for (i=2; i<NF; i++) printf $i "-"; print $i " " $1}' "${TEST_PASS_LOG}" 2>&1 | tee -a "${RESULT_FILE}" sed -i -e 's/PASSED/pass/g' "${RESULT_FILE}" @@ -131,6 +132,7 @@ parse_fwts_test_results() { sed -i -e 's/://g' "${TEST_FAIL_LOG}" sed -i -e 's/,//g' "${TEST_FAIL_LOG}" sed -i -e 's/\\//g' "${TEST_FAIL_LOG}" + sed -i -e 's/\//-/g' "${TEST_FAIL_LOG}" awk '{for (i=2; i<NF; i++) printf $i "-"; print $i " " $1}' "${TEST_FAIL_LOG}" 2>&1 | tee -a "${RESULT_FILE}" sed -i -e 's/Failed/fail/g' "${RESULT_FILE}" @@ -141,6 +143,7 @@ parse_fwts_test_results() { sed -i -e 's/://g' "${TEST_SKIP_LOG}" sed -i -e 's/,//g' "${TEST_SKIP_LOG}" sed -i -e 's/\\//g' "${TEST_SKIP_LOG}" + sed -i -e 's/\//-/g' "${TEST_SKIP_LOG}" awk '{for (i=2; i<NF; i++) printf $i "-"; print $i " " $1}' "${TEST_SKIP_LOG}" 2>&1 | tee -a "${RESULT_FILE}" sed -i -e 's/SKIPPED/skip/g' "${RESULT_FILE}" |