From bd468a89596e6f89a364b322e42a70948672f4e5 Mon Sep 17 00:00:00 2001 From: Achill Gilgenast Date: Tue, 14 Oct 2025 11:42:27 +0200 Subject: [PATCH] tests: Dont add locales to test runtime on musl musl libc doesn't provides locales under /usr/share/locales. The tests still run fine without copying locale under musl. --- tests/make-test-runtime.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/make-test-runtime.sh b/tests/make-test-runtime.sh index 6345ff58..f978601c 100755 --- a/tests/make-test-runtime.sh +++ b/tests/make-test-runtime.sh @@ -93,8 +93,10 @@ chmod a+x ${DIR}/usr/bin/runtime_hello.sh # We copy the C.UTF8 locale and call it en_US. Its a bit of a lie, but # the real en_US locale is often not available, because its in the # local archive. -mkdir -p ${DIR}/usr/lib/locale/ -cp -r /usr/lib/locale/C.* ${DIR}/usr/lib/locale/en_US +if [ -d /usr/lib/locale ]; then + mkdir -p ${DIR}/usr/lib/locale/ + cp -r /usr/lib/locale/C.* ${DIR}/usr/lib/locale/en_US +fi if [ x$COLLECTION_ID != x ]; then collection_args=--collection-id=${COLLECTION_ID}