Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 1 | From 3765b3a4cabf76f55c1c126ac64780a8c117d1d9 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 2 | From: Mingli Yu <mingli.yu@windriver.com> |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 3 | Date: Tue, 12 Jan 2021 10:30:13 +0800 |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 4 | Subject: [PATCH] test: avoid the pfa test hang |
| 5 | |
| 6 | Per [1], the pfa test needs to install page-types and the pfa test |
| 7 | will hang forever if there is no page-types installed. |
| 8 | |
| 9 | Improve the test script to avoid the pfa test hang. |
| 10 | |
| 11 | [1] https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/tree/tests/pfa/PFA_test_howto?id=7b776a8c005b60572f49797e81287540f99fff1f |
| 12 | |
| 13 | Upstream-Status: Submitted [https://github.com/andikleen/mcelog/pull/87] |
| 14 | |
| 15 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
| 16 | --- |
| 17 | tests/test | 3 +++ |
| 18 | 1 file changed, 3 insertions(+) |
| 19 | |
| 20 | diff --git a/tests/test b/tests/test |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 21 | index 020ae2b..320f57f 100755 |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 22 | --- a/tests/test |
| 23 | +++ b/tests/test |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 24 | @@ -47,6 +47,9 @@ do |
| 25 | # Inject mce records and run mcelog in parallel. |
| 26 | # So that the mce records can be consumed by mcelog in time (avoid mce record overflow). |
| 27 | ./inject $conf & |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 28 | + if [ "$1" = "pfa" ] ; then |
| 29 | + which page-types > /dev/null 2>&1 || continue |
| 30 | + fi |
| 31 | $D ../../mcelog --foreground --daemon --debug-numerrors --config $conf --logfile $log >> result |
| 32 | |
| 33 | # let triggers finish |
| 34 | -- |
| 35 | 2.29.2 |
| 36 | |