diff options
Diffstat (limited to 'meta/lib/oeqa/utils/decorators.py')
-rw-r--r-- | meta/lib/oeqa/utils/decorators.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/decorators.py b/meta/lib/oeqa/utils/decorators.py index a9e67ed863..7f845dbb4b 100644 --- a/meta/lib/oeqa/utils/decorators.py +++ b/meta/lib/oeqa/utils/decorators.py | |||
@@ -91,6 +91,10 @@ class testcase(object): | |||
91 | wrapped_f.test_case = self.test_case | 91 | wrapped_f.test_case = self.test_case |
92 | return wrapped_f | 92 | return wrapped_f |
93 | 93 | ||
94 | class NoParsingFilter(logging.Filter): | ||
95 | def filter(self, record): | ||
96 | return record.levelno == 100 | ||
97 | |||
94 | def LogResults(original_class): | 98 | def LogResults(original_class): |
95 | orig_method = original_class.run | 99 | orig_method = original_class.run |
96 | 100 | ||
@@ -121,6 +125,8 @@ def LogResults(original_class): | |||
121 | format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', | 125 | format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', |
122 | datefmt='%H:%M:%S', | 126 | datefmt='%H:%M:%S', |
123 | level=custom_log_level) | 127 | level=custom_log_level) |
128 | for handler in logging.root.handlers: | ||
129 | handler.addFilter(NoParsingFilter()) | ||
124 | local_log = logging.getLogger(caller) | 130 | local_log = logging.getLogger(caller) |
125 | 131 | ||
126 | #check status of tests and record it | 132 | #check status of tests and record it |