diff mbox

tests: catch various lockdep warnings

Message ID 20170530142950.29017-1-johannes@sipsolutions.net
State Accepted
Headers show

Commit Message

Johannes Berg May 30, 2017, 2:29 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

Lockdep no longer prints "INFO:" but now prints "WARNING:".
Also add the "*** DEADLOCK ***" string it usually prints so
if it changes again we can keep finding that string.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 tests/hwsim/check_kernel.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen July 8, 2017, 7:26 p.m. UTC | #1
On Tue, May 30, 2017 at 04:29:50PM +0200, Johannes Berg wrote:
> Lockdep no longer prints "INFO:" but now prints "WARNING:".
> Also add the "*** DEADLOCK ***" string it usually prints so
> if it changes again we can keep finding that string.

Thanks, applied.
diff mbox

Patch

diff --git a/tests/hwsim/check_kernel.py b/tests/hwsim/check_kernel.py
index 15e585646c12..446c9a04e914 100644
--- a/tests/hwsim/check_kernel.py
+++ b/tests/hwsim/check_kernel.py
@@ -21,7 +21,7 @@  lockdep_messages = [
   'possible irq lock inversion dependency',
   'suspicious RCU usage',
 ]
-lockdep = r'(\[\s*)?INFO: (%s)' % ('|'.join(lockdep_messages), )
+lockdep = r'(\[\s*)?(INFO|WARNING): (%s)|\*\*\* DEADLOCK \*\*\*' % ('|'.join(lockdep_messages), )
 issue = re.compile('(\[[0-9 .]*\] )?(WARNING:|BUG:|%s|RTNL: assertion failed).*' % lockdep)
 
 def check_kernel(logfile):