diff options
author | Jérémy Rosen <jeremy.rosen@smile.fr> | 2023-10-10 15:49:29 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-15 09:11:47 +0100 |
commit | 18bd65d241d2ca2d14541b9c6dd0d9f3f1cdba35 (patch) | |
tree | 5c8bbc56372d8152648da79e94f690f437b10f63 /meta/lib/patchtest/tests/test_patch_cve.py | |
parent | 5330065f51fc0dcc2b74360220b2c97c4b80e622 (diff) | |
download | poky-18bd65d241d2ca2d14541b9c6dd0d9f3f1cdba35.tar.gz |
insane: Detect python and perl based tests
match_line_in_files will look for a regex in all files matching a glob.
we use iglob to avoid a complete, recursive scan of all source. iglob is
based on python iterators and will scan as we walk through the directories
pytest are detected by looking for "import pytest" or "from pytest" in any
python file.
perl Test:: is detetected by looking for any t/*.t in the toplevel source
directory.
(From OE-Core rev: 00d64ac38ae4af6193fae3b02375a16b1821f29e)
Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/patchtest/tests/test_patch_cve.py')
0 files changed, 0 insertions, 0 deletions