@@ -83,6 +83,14 @@ def runTest(self):
8383 if (isinstance (self .cv_BMC , OpTestMambo .OpTestMambo )) \
8484 or (isinstance (self .cv_BMC , OpTestQemu .OpTestQemu )):
8585 raise unittest .SkipTest ("QEMU/Mambo so skipping BMCLogin test" )
86+
87+ filter_list = [
88+ 'Out of memory: Kill process' ,
89+ 'Killed process' ,
90+ ]
91+
92+ found_issues = []
93+
8694 r = self .cv_BMC .run_command ("echo 'Hello World'" )
8795 self .assertIn ("Hello World" , r )
8896 try :
@@ -91,6 +99,19 @@ def runTest(self):
9199 self .assertEqual (r .exitcode , 1 )
92100 for i in range (2 ):
93101 self .cv_BMC .run_command ("dmesg" )
102+ try :
103+ r = self .cv_BMC .run_command ("dmesg" )
104+ for f in filter_list :
105+ fre = re .compile (f )
106+ found_issues = [l for l in r if fre .search (l )]
107+ log .debug ("BMC found_issues={}" .format (found_issues ))
108+ msg = '\n ' .join (filter (None , found_issues ))
109+ if len (found_issues ) != 0 :
110+ r = self .cv_BMC .run_command ("dmesg -c" )
111+ log .debug ("REPORT_BUG so we cleared dmesg to allow other tests to succeed" )
112+ self .assertTrue ( len (found_issues ) == 0 , "REPORT_BUG BMC dmesg, debug log has full details:\n {}" .format (msg ))
113+ except CommandFailed as r :
114+ log .debug ("BMC dmesg grep for issues failed" )
94115
95116class SSHHostLogin (unittest .TestCase ):
96117 '''
0 commit comments