blob: 83c29a651fb540dde4d44400f31afb08474da183 [file] [log] [blame]
Andrew Geisslereef63862021-01-29 15:58:13 -06001From 139177715a2d66ccd3e099be5d9d4dc86db30055 Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Tue, 12 Jan 2021 03:05:38 +0000
4Subject: [PATCH] test: avoid the pfa test hang
5
6Per [1], the pfa test needs to install page-types and the pfa test
7will hang forever if there is no page-types installed.
8
9Improve 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
13Upstream-Status: Submitted [https://github.com/andikleen/mcelog/pull/87]
14
15Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
16---
17 tests/test | 3 +++
18 1 file changed, 3 insertions(+)
19
20diff --git a/tests/test b/tests/test
21index 9623f4a..7c552a9 100755
22--- a/tests/test
23+++ b/tests/test
24@@ -45,6 +45,9 @@ for conf in `ls *.conf`
25 do
26 log=`echo $conf | sed "s/conf/log/g"`
27 ./inject $conf
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--
352.29.2
36