Skip to contentSkip to conversation

mcelog: improve the ptest output

PATCH New [email protected] 1 participant 1 message Mar 30, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mcelog: improve the ptest output

From: Mingli Yu <[email protected]>

Before:

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

After:

 # ./run-ptest
  [snip]
  PASS: code 0xd2d
---
 meta-oe/recipes-support/mcelog/mcelog/run-ptest | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
meta-oe/recipes-support/mcelog/mcelog/run-ptest +7 -1
index ba7a2c768..320240f27 100644
@@ -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\]//'
Signature · 1 line
2.25.1