diff mbox series

[1/3] attr: Disable attr.test on musl

Message ID 20230421034133.1136343-1-raj.khem@gmail.com
State Accepted, archived
Commit b29ce2f571fa38646e5d2000a502eed040cae1c0
Headers show
Series [1/3] attr: Disable attr.test on musl | expand

Commit Message

Khem Raj April 21, 2023, 3:41 a.m. UTC
the error message in musl based systems is
EXPECTED: Operation not supported
RECIEVED: Not supported

The test is then marked as failed due to this.
Ignore this test on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-support/attr/attr.inc | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc
index ab62563690..8ba865a74a 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -48,6 +48,10 @@  do_install_ptest() {
 	cp -rf ${S}/test/ ${D}${PTEST_PATH}
 }
 
+do_install_ptest:append:libc-musl() {
+        sed -i -e 's|f: Operation n|f: N|g' ${D}${PTEST_PATH}/test/attr.test
+}
+
 RDEPENDS:${PN}-ptest = "attr \
                         bash \
                         coreutils \