diff mbox series

[meta-oe] mcelog: improve the ptest output

Message ID 20230330060515.3968306-1-mingli.yu@eng.windriver.com
State Under Review
Headers show
Series [meta-oe] mcelog: improve the ptest output | expand

Commit Message

mingli.yu@eng.windriver.com March 30, 2023, 6:05 a.m. UTC
From: Mingli Yu <mingli.yu@windriver.com>

Before:
 # ./run-ptest
 [snip]
 code 0xd2d: [PASS]

 After:
 # ./run-ptest
  [snip]
  PASS: code 0xd2d

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 meta-oe/recipes-support/mcelog/mcelog/run-ptest | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/mcelog/mcelog/run-ptest b/meta-oe/recipes-support/mcelog/mcelog/run-ptest
index ba7a2c768..320240f27 100644
--- a/meta-oe/recipes-support/mcelog/mcelog/run-ptest
+++ b/meta-oe/recipes-support/mcelog/mcelog/run-ptest
@@ -1,3 +1,9 @@ 
 #!/bin/sh
 
-make -C tests test
+make -C tests test | sed -e '/\[PASS\]/ s/^/PASS: /g' \
+                         -e '/\[FAIL\]/ s/^/FAIL: /g' \
+                         -e '/\[IGNORE\]/ s/^/SKIP: /g' \
+                         -e 's/IGNORE:/SKIP:/' \
+                         -e 's/: \[PASS\]//' \
+                         -e 's/: \[FAIL\]//' \
+                         -e 's/: \[IGNORE\]//'