fmt: make ptest installation and execution more posix compliant

Instead of using `ls...` just enumerate the folder content with an asterisk.

No behavior change should come from this patch.

(From OE-Core rev: b1870e588958fa6957278a6c253a70fa30485764)

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Gyorgy Sarvari 2025-10-27 21:31:22 +01:00 committed by Richard Purdie
parent 78bd8888af
commit 351f7f3b4c
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
for t in `ls ./*-test`; do
for t in *-test; do
./$t && echo PASS: $t || echo FAIL: $t
done

View File

@ -17,7 +17,7 @@ EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON"
EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-DFMT_TEST=ON', '', d)}"
do_install_ptest(){
for t in `ls ${B}/bin/*-test`; do
for t in ${B}/bin/*-test; do
install $t ${D}${PTEST_PATH}/
done
}