summaryrefslogtreecommitdiffstats
path: root/scripts/oe-test
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2025-07-07 10:21:32 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-07-10 10:47:30 +0100
commite5e8f2aa0a63df555f79b79205c3900c33d90d50 (patch)
tree1d199ef9d54808cd68f176f4409647ba53389001 /scripts/oe-test
parent458c39ac1f81932bb92afaef098ea618c54bb737 (diff)
downloadpoky-e5e8f2aa0a63df555f79b79205c3900c33d90d50.tar.gz
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>
Diffstat (limited to 'scripts/oe-test')
-rwxr-xr-xscripts/oe-test12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/oe-test b/scripts/oe-test
index 55985b0b24..3a00369e01 100755
--- a/scripts/oe-test
+++ b/scripts/oe-test
@@ -7,14 +7,18 @@
7# SPDX-License-Identifier: MIT 7# SPDX-License-Identifier: MIT
8# 8#
9 9
10import os
11import sys
12import argparse 10import argparse
11import glob
13import logging 12import logging
13import os
14import sys
14 15
15scripts_path = os.path.dirname(os.path.realpath(__file__)) 16scripts_path = os.path.dirname(os.path.realpath(__file__))
16lib_path = scripts_path + '/lib' 17lib_path = os.path.join(scripts_path, 'lib')
17sys.path = sys.path + [lib_path] 18sys.path.append(lib_path)
19meta_lib_paths = glob.glob(scripts_path + '/*/lib', recursive=True)
20for p in meta_lib_paths:
21 sys.path.append(p)
18import argparse_oe 22import argparse_oe
19import scriptutils 23import scriptutils
20 24