mcelog: improve the ptest output

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

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

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Mingli Yu
2023-03-30 14:05:15 +08:00
committed by Khem Raj
parent 06cd3f757d
commit c2ddfe8b3a
@@ -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\]//'