summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/files/run-ptest
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2019-07-16 11:48:42 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-17 09:36:29 +0100
commit99176bce7a185c996ef892b4f9b2617825a607fb (patch)
treecd69747c714c4da5bbacba235ad3744004026434 /meta/recipes-extended/mdadm/files/run-ptest
parent333c2bd397ff3b0ec3e7812e04cb5e077fa59683 (diff)
downloadopenembedded-core-contrib-99176bce7a185c996ef892b4f9b2617825a607fb.tar.gz
mdadm: make ptest output format align with common style
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mdadm/files/run-ptest')
-rw-r--r--meta/recipes-extended/mdadm/files/run-ptest17
1 files changed, 1 insertions, 16 deletions
diff --git a/meta/recipes-extended/mdadm/files/run-ptest b/meta/recipes-extended/mdadm/files/run-ptest
index 234f97376a..e4a9c2b08b 100644
--- a/meta/recipes-extended/mdadm/files/run-ptest
+++ b/meta/recipes-extended/mdadm/files/run-ptest
@@ -1,19 +1,4 @@
#!/bin/sh
-LOG="$(pwd)/test.log"
# make the test continue to execute even one fail
-./test --keep-going 2>&1|tee ${LOG}
-# translate the test report
-# "tests/18imsm-r10_4d-takeover-r0_2d... succeeded" -> "PASS: tests/18imsm-r10_4d-takeover-r0_2d"
-# "tests/19raid6repair... FAILED - see //log for details" -> "FAIL: tests/19raid6repair"
-sed -i -e '/succeeded/ s/^/PASS: /' -e '/FAILED/ s/^/FAIL: /' ${LOG}
-sed -i -e 's/... FAILED//g' -e 's/... succeeded//g' ${LOG}
-passed=`grep PASS: ${LOG}|wc -l`
-failed=`grep FAIL: ${LOG}|wc -l`
-all=$((passed + failed))
-
-( echo "=== Test Summary ==="
- echo "TOTAL: ${all}"
- echo "PASSED: ${passed}"
- echo "FAILED: ${failed}"
-) | tee -a /${LOG}
+./test --keep-going