diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2021-01-12 10:30:13 +0800 |
---|---|---|
committer | Mingli Yu <mingli.yu@windriver.com> | 2021-01-12 11:01:09 +0800 |
commit | f9227394b744d1642deea02ba588e35ad36399a6 (patch) | |
tree | c43b69b90dc68279c80fce4899df7d3bdd854087 /tests | |
parent | 7b776a8c005b60572f49797e81287540f99fff1f (diff) | |
download | mcelog-f9227394b744d1642deea02ba588e35ad36399a6.tar.gz |
test: avoid the pfa test hang
Per [1], the pfa test needs to install page-types and the pfa test
will hang forever if there is no page-types installed.
Improve the test script to avoid the pfa test hang.
[1] https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/tree/tests/pfa/PFA_test_howto?id=7b776a8c005b60572f49797e81287540f99fff1f
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -47,6 +47,9 @@ do # Inject mce records and run mcelog in parallel. # So that the mce records can be consumed by mcelog in time (avoid mce record overflow). ./inject $conf & + if [ "$1" = "pfa" ] ; then + which page-types > /dev/null 2>&1 || continue + fi $D ../../mcelog --foreground --daemon --debug-numerrors --config $conf --logfile $log >> result # let triggers finish |