]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
attr: Disable attr.test on musl
authorKhem Raj <raj.khem@gmail.com>
Fri, 21 Apr 2023 03:41:31 +0000 (20:41 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Apr 2023 13:41:26 +0000 (14:41 +0100)
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>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
meta/recipes-support/attr/attr.inc

index ab62563690b04dd93a9c7cbf58df6f3b91cfe088..8ba865a74a0a78b3780afcc6315472cfd83e9698 100644 (file)
@@ -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 \