|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 21-Aug-2025 | - |
| doc/ | | 21-Aug-2025 | - | | |
| README | A D | 21-Aug-2025 | 2 KiB | 56 | 44 |
README
1This directory contains configuration files to ignore errors found in
2the build and test process which are known to the developers and for
3now can be safely ignored.
4
5To use:
6
7 $ cd <build directory>
8 $ make SOMETHING >& result
9 $ scripts/filter-known-issues.py result
10
11It is included in the source tree so if anyone has to submit anything
12that triggers some kind of error that is a false positive, it can
13include the "ignore me" file, properly documented.
14
15Each file can contain one or more multiline Python regular expressions
16(https://docs.python.org/2/library/re.html#regular-expression-syntax)
17that match an error message. Multiple regular expressions are
18separated by comment blocks (that start with #). Note that an empty
19line still is considered part of the multiline regular expression.
20
21For 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
40Note 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
54Can get really twisted and interesting in terms of regexps; they are
55powerful, so start small :)
56