]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa/runtime/parselogs: load ignores from disk
authorRoss Burton <ross.burton@arm.com>
Mon, 4 Dec 2023 18:24:17 +0000 (18:24 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Dec 2023 22:55:46 +0000 (22:55 +0000)
commit7a04063f7cff243fe2bee09664ad7979612110cb
treedba06fd8005320cb4e2f6b2d7f841e34cb2eeeae
parent9add9e7b0da99b1530fcc12d3f8e6705a4af15fc
oeqa/runtime/parselogs: load ignores from disk

Instead of hardcoding the list of ignored errors/warnings in the test
itself, read them plain text files on disk.

This uses importlib to try to open a file called
oeqa.runtime.cases.parselogs-ignores-[candidate].txt, where the
candidate will be:

- "common"
- The TARGET_ARCH
- Each of the MACHINEOVERRDES

This allows the common and tune-specific ignores to be retained in
oe-core, and machine-specific ignores added to the layer where the
machine is defined.

[ YOCTO #14604 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/cases/parselogs.py