|
| 1 | +This directory contains configuration files to ignore errors found in |
| 2 | +the build and test process which are known to the developers and for |
| 3 | +now can be safely ignored. |
| 4 | + |
| 5 | +To use: |
| 6 | + |
| 7 | + $ cd <build directory> |
| 8 | + $ make SOMETHING >& result |
| 9 | + $ scripts/filter-known-issues.py result |
| 10 | + |
| 11 | +It is included in the source tree so if anyone has to submit anything |
| 12 | +that triggers some kind of error that is a false positive, it can |
| 13 | +include the "ignore me" file, properly documented. |
| 14 | + |
| 15 | +Each file can contain one or more multiline Python regular expressions |
| 16 | +(https://docs.python.org/2/library/re.html#regular-expression-syntax) |
| 17 | +that match an error message. Multiple regular expressions are |
| 18 | +separated by comment blocks (that start with #). Note that an empty |
| 19 | +line still is considered part of the multiline regular expression. |
| 20 | + |
| 21 | +For example |
| 22 | + |
| 23 | +---beginning--- |
| 24 | +# |
| 25 | +# This testcase always fails, pending fix ZEP-1234 |
| 26 | +# |
| 27 | +.*/tests/kernel/grumpy .* FAIL |
| 28 | +# |
| 29 | +# Documentation issue, masks: |
| 30 | +# |
| 31 | +# /home/e/inaky/z/kernel.git/doc/api/io_interfaces.rst:28: WARNING: Invalid definition: Expected identifier in nested name. [error at 19] |
| 32 | +# struct dev_config::@65 dev_config::bits |
| 33 | +# -------------------^ |
| 34 | +# |
| 35 | +^(?P<filename>.+/doc/api/io_interfaces.rst):(?P<lineno>[0-9]+): WARNING: Invalid definition: Expected identifier in nested name. \[error at [0-9]+] |
| 36 | +^\s+struct dev_config::@[0-9]+ dev_config::bits.* |
| 37 | +^\s+-+\^ |
| 38 | +---end--- |
| 39 | + |
| 40 | +Note you want to: |
| 41 | + |
| 42 | +- use relateive paths; instead of |
| 43 | + /home/me/mydir/zephyr/something/somewhere.c you will want |
| 44 | + ^.*/something/somewhere.c (as they will depend on where it is being |
| 45 | + built) |
| 46 | + |
| 47 | +- Replace line numbers with [0-9]+, as they will change |
| 48 | + |
| 49 | +- (?P<filename>[-._/\w]+/something/somewhere.c) saves the match on |
| 50 | + that file path in a "variable" called 'filename' that later you can |
| 51 | + match with (?P=filename) if you want to match multiple lines of the |
| 52 | + same error message. |
| 53 | + |
| 54 | +Can get really twisted and interesting in terms of regexps; they are |
| 55 | +powerful, so start small :) |
0 commit comments