]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
fmt: make ptest installation and execution more posix compliant
authorGyorgy Sarvari <skandigraun@gmail.com>
Mon, 27 Oct 2025 20:31:22 +0000 (21:31 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Oct 2025 11:06:22 +0000 (11:06 +0000)
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 <skandigraun@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/fmt/fmt/run-ptest
meta/recipes-devtools/fmt/fmt_11.2.0.bb

index a069e4543c9ae95ab0b927d8f6659fcb6cebdf1a..ba1e9fc51fccbe9235ddace21e545334482272b0 100644 (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
index 06ba523ada546367f29ee69c743aefc7bd68af77..133e1ae77d9e2c1b755f35ad9bc8f7dc9434d8f0 100644 (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
 }