aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormwasilew <milosz.wasilewski@linaro.org>2020-12-09 09:07:02 +0000
committerGitHub <noreply@github.com>2020-12-09 09:07:02 +0000
commit6a942b49fa30da364ec0e9dab7fddbf712fd8d4f (patch)
tree3aec6f6573dba44681d6b1d4dd06d313ff68a666
parent121bc6b6ff29e5537dc6888ba29c2199d0acad8c (diff)
parent15a43e3e085a9153b8d7a98008c4441762006453 (diff)
Merge pull request #256 from nareshkamboju/master
fwts: improve results parser
-rwxr-xr-xautomated/linux/fwts/fwts.sh3
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}"