diff mbox series

icu: exclude debug files from ptest execution

Message ID 20251204060053.3858475-1-jiaying.song.cn@windriver.com
State New
Headers show
Series icu: exclude debug files from ptest execution | expand

Commit Message

Song, Jiaying (CN) Dec. 4, 2025, 6 a.m. UTC
From: Jiaying Song <jiaying.song.cn@windriver.com>

When EXTRA_IMAGE_FEATURES contains dbg-pkgs, a .debug directory is
created containing debug symbol files that cannot be executed, causing
ptest failures such as:

/usr/lib64/icu/ptest/run-ptest: line 7: ././.debug/cintltst: cannot execute binary file: Exec format error
FAIL: ./.debug/cintltst

Modify run-ptest script to skip .debug directory files during test
execution.

Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
---
 meta/recipes-support/icu/icu/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-support/icu/icu/run-ptest b/meta/recipes-support/icu/icu/run-ptest
index e5bf27a822..ccf1d99a36 100755
--- a/meta/recipes-support/icu/icu/run-ptest
+++ b/meta/recipes-support/icu/icu/run-ptest
@@ -2,7 +2,7 @@ 
 
 TOPDIR=$(dirname "$(realpath $0)")
 cd ${TOPDIR}/test/tests
-TESTS=$(find . -executable -type f)
+TESTS=$(find . -executable -type f ! -path "*/.debug/*")
 for t in ${TESTS}; do
 	./$t
 	if [ "$?" = "0" ]; then