testexport.bbclass oe-test: capture all tests and data from all layers

testexport.bbclass only copied files from core layer to
the testexport.tar.gz to run tests. Then it filtered
out tests and files which were not specified in
TEST_SUITES variable.

Remove filtering of files to include parselogs.py
test data files which are machine and/or layer specific.
TEST_SUITES variable is now read from build time exported
data store when running tests so there is no need to remove
files from exported tests in testexport.bbclass.

Adapt oe-test script to find "lib" directories from
the new structure with layer specific paths which are
used to find tests and test data files.

(From OE-Core rev: 5c39fedee1dd0e101e2611b71a895c0251ba968d)

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mikko Rapeli
2025-07-07 10:21:32 +03:00
committed by Richard Purdie
parent 458c39ac1f
commit e5e8f2aa0a
2 changed files with 30 additions and 25 deletions

View File

@@ -7,14 +7,18 @@
# SPDX-License-Identifier: MIT
#
import argparse
import glob
import logging
import os
import sys
import argparse
import logging
scripts_path = os.path.dirname(os.path.realpath(__file__))
lib_path = scripts_path + '/lib'
sys.path = sys.path + [lib_path]
lib_path = os.path.join(scripts_path, 'lib')
sys.path.append(lib_path)
meta_lib_paths = glob.glob(scripts_path + '/*/lib', recursive=True)
for p in meta_lib_paths:
sys.path.append(p)
import argparse_oe
import scriptutils