diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2020-03-06 19:25:16 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-03-07 10:06:16 +0000 |
commit | d03c12bb8f61bee41b9f6442ecbdbd8e5850ea66 (patch) | |
tree | e848d46edda1b8c2f8f88c29123689f6636bda13 /meta/lib | |
parent | 67511eda71affb6a0c9bfab37f59a53d35ac30c0 (diff) | |
download | poky-d03c12bb8f61bee41b9f6442ecbdbd8e5850ea66.tar.gz |
parselogs.py: ignore rdrand initialization failure
On the system whose cpu doesn't support rdrand,
there comes below message when start rngd service
#systemctl status rngd
[snip]
Feb 25 05:08:14 qemux86-64 rngd[133]: [rdrand]: Initialization Failed
[snip]
Actually the failed message doesn't matter as it
only indicates one entropy source as rdrand fails
to initialize and won't affect rngd function.
So add to ignore the failure message to fix below
error during do_testimage:
NOTE: ======================================================================
NOTE: FAIL: test_parselogs (parselogs.ParseLogsTest)
NOTE: ----------------------------------------------------------------------
NOTE: Traceback (most recent call last):
File "/buildarea/layers/oe-core/meta/lib/oeqa/core/decorator/__init__.py", line 36, in wrapped_f
return func(*args, **kwargs)
File "/buildarea/layers/oe-core/meta/lib/oeqa/runtime/cases/parselogs.py", line 370, in test_parselogs
self.assertEqual(errcount, 0, msg=self.msg)
AssertionError: 1 != 0 : Log: /buildarea/tmp/work/qemux86-64-wrs-linux/wrlinux-image-std/1.0-r5/target_logs/daemon.log
Central error: 2020-03-06T09:45:12.774286+00:00 qemux86-64 rngd[134]: [rdrand]: Initialization Failed
Reference: https://github.com/nhorman/rng-tools/pull/84
(From OE-Core rev: 09c4f9068858bf59eb60584a497f987bdd1e196e)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/parselogs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/parselogs.py b/meta/lib/oeqa/runtime/cases/parselogs.py index 3cad0709a1..6444fe814c 100644 --- a/meta/lib/oeqa/runtime/cases/parselogs.py +++ b/meta/lib/oeqa/runtime/cases/parselogs.py | |||
@@ -56,7 +56,8 @@ common_errors = [ | |||
56 | "error retry time-out =", | 56 | "error retry time-out =", |
57 | "logind: cannot setup systemd-logind helper (-61), using legacy fallback", | 57 | "logind: cannot setup systemd-logind helper (-61), using legacy fallback", |
58 | "Error changing net interface name 'eth0' to ", | 58 | "Error changing net interface name 'eth0' to ", |
59 | "Cannot find a map file" | 59 | "Cannot find a map file", |
60 | "[rdrand]: Initialization Failed" | ||
60 | ] | 61 | ] |
61 | 62 | ||
62 | video_related = [ | 63 | video_related = [ |