From: Gyorgy Sarvari Date: Mon, 27 Oct 2025 20:31:22 +0000 (+0100) Subject: fmt: make ptest installation and execution more posix compliant X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1870e588958fa6957278a6c253a70fa30485764;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git 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. Signed-off-by: Gyorgy Sarvari Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/fmt/fmt/run-ptest b/meta/recipes-devtools/fmt/fmt/run-ptest index a069e4543c..ba1e9fc51f 100644 --- a/meta/recipes-devtools/fmt/fmt/run-ptest +++ b/meta/recipes-devtools/fmt/fmt/run-ptest @@ -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 diff --git a/meta/recipes-devtools/fmt/fmt_11.2.0.bb b/meta/recipes-devtools/fmt/fmt_11.2.0.bb index 06ba523ada..133e1ae77d 100644 --- a/meta/recipes-devtools/fmt/fmt_11.2.0.bb +++ b/meta/recipes-devtools/fmt/fmt_11.2.0.bb @@ -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 }