Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] lib/oeqa: add __init__.py
@ 2023-03-20 15:46 Konrad Weihmann
  2023-03-22 13:41 ` [OE-core] " Alexandre Belloni
  0 siblings, 1 reply; 2+ messages in thread
From: Konrad Weihmann @ 2023-03-20 15:46 UTC (permalink / raw)
  To: openembedded-core; +Cc: Konrad Weihmann

to allow loading of oeqa modules outside of bitbake.
Calls like from oeqa.runtime.case import OERuntimeTestCase or
from oeqa.runtime.case import OERuntimeTestCase assume that oeqa
is a python module, but a the folder is lacking an __init__.py imports
fail when the file is loaded outside of bitbake with manipulated
sys.path.
Fix that by adding an empty file.
This allow to inspect for instance test case and generate proper
test documentation from docstring or even other use cases.

The file got deleted to fix testimage and testexport features in
d9b3ee8b38f877c1723e48f1aa311c28102786fb, but it should have
been not deleted but just emptied

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
---
 meta/lib/oeqa/__init__.py | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 meta/lib/oeqa/__init__.py

diff --git a/meta/lib/oeqa/__init__.py b/meta/lib/oeqa/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
-- 
2.34.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-22 13:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-20 15:46 [PATCH] lib/oeqa: add __init__.py Konrad Weihmann
2023-03-22 13:41 ` [OE-core] " Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox