12345678910111213141516171819202122 |
- """
- Tests for kernel messages to find if there were any issues in them.
- """
- import re
- issue = re.compile('(\[[0-9 .]*\] )?(WARNING:|BUG:).*')
- def check_kernel(logfile):
- for line in open(logfile, 'r'):
- if issue.match(line):
- return False
- return True
|