diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-10-27 21:31:22 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-30 11:06:28 +0000 |
| commit | 351f7f3b4cfe4af8f5640e35e3ff0c266eff3a2c (patch) | |
| tree | cf07b558dafb789d1bfe4f535886dda6b36ee558 | |
| parent | 78bd8888af221923c3e6ac36349fe2df81323c97 (diff) | |
| download | poky-351f7f3b4cfe4af8f5640e35e3ff0c266eff3a2c.tar.gz | |
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>
| -rw-r--r-- | meta/recipes-devtools/fmt/fmt/run-ptest | 2 | ||||
| -rw-r--r-- | meta/recipes-devtools/fmt/fmt_11.2.0.bb | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | for t in `ls ./*-test`; do | 3 | for t in *-test; do |
| 4 | ./$t && echo PASS: $t || echo FAIL: $t | 4 | ./$t && echo PASS: $t || echo FAIL: $t |
| 5 | done | 5 | 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" | |||
| 17 | EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-DFMT_TEST=ON', '', d)}" | 17 | EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-DFMT_TEST=ON', '', d)}" |
| 18 | 18 | ||
| 19 | do_install_ptest(){ | 19 | do_install_ptest(){ |
| 20 | for t in `ls ${B}/bin/*-test`; do | 20 | for t in ${B}/bin/*-test; do |
| 21 | install $t ${D}${PTEST_PATH}/ | 21 | install $t ${D}${PTEST_PATH}/ |
| 22 | done | 22 | done |
| 23 | } | 23 | } |
