oeqa runtime tests like stap.py depend oe library so capture
it to testexport tar ball so that test environments can run the
test too. Fixes:
2026-08-13 06:44:37,419 - runtime - INFO - ERROR: test_stap
(stap.StapTest.test_stap)
2026-08-13 06:44:37,420 - runtime - INFO -
----------------------------------------------------------------------
2026-08-13 06:44:37,420 - runtime - INFO - Traceback (most recent call last):
File
"/lava-downloads/core-image-sato-sdk/meta/lib/oeqa/core/decorator/__init__.py",
line 35, in wrapped_f
return func(*args, **kwargs)
File
"/lava-downloads/core-image-sato-sdk/meta/lib/oeqa/core/decorator/__init__.py",
line 35, in wrapped_f
return func(*args, **kwargs)
File
"/lava-downloads/core-image-sato-sdk/meta/lib/oeqa/core/decorator/__init__.py",
line 35, in wrapped_f
return func(*args, **kwargs)
[Previous line repeated 1 more time]
File
"/lava-downloads/core-image-sato-sdk/meta/lib/oeqa/runtime/cases/stap.py", line
19, in test_stap
from oe.utils import parallel_make_value
ModuleNotFoundError: No module named 'oe'
Signed-off-by: Mikko Rapeli <[email protected]>
---
meta/classes-recipe/testexport.bbclass | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta/classes-recipe/testexport.bbclass
b/meta/classes-recipe/testexport.bbclass
index 12b7e17112..adcc36c062 100644
--- a/meta/classes-recipe/testexport.bbclass
+++ b/meta/classes-recipe/testexport.bbclass
@@ -117,9 +117,10 @@ def copy_needed_files(d, tc):
shutil.copy2(src, dst)
# layer specific files/dirs
- layer_files_to_copy = [ os.path.join('lib', 'oeqa', 'core'),
- os.path.join('lib', 'oeqa', 'runtime'),
+ layer_files_to_copy = [ os.path.join('lib', 'oe'),
+ os.path.join('lib', 'oeqa', 'core'),
os.path.join('lib', 'oeqa', 'files'),
+ os.path.join('lib', 'oeqa', 'runtime'),
os.path.join('lib', 'oeqa', 'utils'),]
for layer in bblayers:
meta = os.path.basename(layer)
--
2.55.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#243420):
https://lists.openembedded.org/g/openembedded-core/message/243420
Mute This Topic: https://lists.openembedded.org/mt/120745542/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-