diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-08-21 11:12:46 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-25 17:47:21 +0100 |
| commit | 851c7e56c37b4e0849d819ea96f328caa81e6b43 (patch) | |
| tree | 6ef2cf52a80c11ef2e81ea5ee58286ded1f58a3c | |
| parent | 93ba61423c9b6772f97503ab3808fb85bb1a520d (diff) | |
| download | poky-851c7e56c37b4e0849d819ea96f328caa81e6b43.tar.gz | |
findutils: Use C locale to run ptests
Ensure consistent locale setting, since we are not
using make environemnt to run the tests like
upstream does. The test scripts are run explicitly
This fixes a problem with musl ptest runs where the
locale-driven quoting ends up using C.UTF-8 quotes
in gnulib’s quotearg() end up with curly quotes
instead of ASCII quote character which is expected
and result is reported as failure even though numbers
are matching.
Fixes:
-find: invalid group name or GID argument to -group: '4294967296'
+find: invalid group name or GID argument to -group: ‘4294967296’
FAIL: tests/find/user-group-max.sh
(From OE-Core rev: 0e60d1169ee0ae0e6651951e9a917a0e24bee157)
Signed-off-by: Khem Raj <raj.khem@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-extended/findutils/findutils/run-ptest | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-extended/findutils/findutils/run-ptest b/meta/recipes-extended/findutils/findutils/run-ptest index 0c9af47efd..afe004b01a 100644 --- a/meta/recipes-extended/findutils/findutils/run-ptest +++ b/meta/recipes-extended/findutils/findutils/run-ptest | |||
| @@ -13,6 +13,9 @@ export built_programs="find xargs locate updatedb" | |||
| 13 | # this gets substituted by sed during build | 13 | # this gets substituted by sed during build |
| 14 | export VERSION="__run_ptest_version__" | 14 | export VERSION="__run_ptest_version__" |
| 15 | 15 | ||
| 16 | # Force ASCII quotes so exp vs err comparisons are stable across locales. | ||
| 17 | export LC_ALL=C | ||
| 18 | |||
| 16 | for f in tests/*/*.sh; do | 19 | for f in tests/*/*.sh; do |
| 17 | bash $f ; | 20 | bash $f ; |
| 18 | case $? in | 21 | case $? in |
