| Message ID | 20251027203122.4120798-1-skandigraun@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series | fmt: make ptest installation and execution more posix compliant | expand |
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 }
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> --- meta/recipes-devtools/fmt/fmt/run-ptest | 2 +- meta/recipes-devtools/fmt/fmt_11.2.0.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)