]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
acl/attr: ptest fixes and improvements
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Aug 2023 05:58:51 +0000 (11:28 +0530)
committerSteve Sakoman <steve@sakoman.com>
Tue, 22 Aug 2023 17:07:13 +0000 (07:07 -1000)
Add a missing perl module dependency for the ptest packages and also
improve the run-ptest script so that the error log is saved allowing
easier debugging if this fails in future.

(From OE-Core rev: fbb9c596b8e6a8a1260dd7aefddf138d20bf64df)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2c948fa0250b765bc5f2fbe63c82258601cc77ff)
Signed-off-by: Bhabu Bindu <bhabu.bindu@kpit.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-support/attr/acl/run-ptest
meta/recipes-support/attr/acl_2.3.1.bb
meta/recipes-support/attr/attr.inc
meta/recipes-support/attr/attr/run-ptest

index 43128233654d31b3577877ce21cb4344b3068fa9..3af75c84fea41a025f40b7e558e83d65b0a0cb20 100644 (file)
@@ -7,4 +7,10 @@
 mkdir -p /tmp/acl-ptest/test
 cp test/test.* /tmp/acl-ptest/test
 
+set +e
 make test-suite.log
+exitcode=$?
+if [ $exitcode -ne 0 -a -e test-suite.log ]; then
+    cat test-suite.log
+fi
+exit $exitcode
index aca04a9aac3ce71168709af16f1958c079c1dad9..c2c9ba90691f04156b0adbef207ffe187f802d70 100644 (file)
@@ -62,6 +62,7 @@ RDEPENDS:${PN}-ptest = "acl \
                         bash \
                         coreutils \
                         perl \
+                        perl-module-constant \
                         perl-module-filehandle \
                         perl-module-getopt-std \
                         perl-module-posix \
index a4e38f2b19935e73ae536583e959520a821fffb1..56028edb12ce89b723fb3fad27c97e1d63d92bb5 100644 (file)
@@ -50,6 +50,7 @@ do_install_ptest() {
 
 RDEPENDS:${PN}-ptest = "attr \
                         coreutils \
+                        perl-module-constant \
                         perl-module-filehandle \
                         perl-module-getopt-std \
                         perl-module-posix \
index f64244f239390dd9a3c3e257ca1523c1a2efbf80..3e7a3a17a04785d4d588510038286001a7fdac66 100644 (file)
@@ -1,3 +1,10 @@
 #!/bin/sh
 
+set +e
 make test-suite.log
+exitcode=$?
+if [ $exitcode -ne 0 -a -e test-suite.log ]; then
+    cat test-suite.log
+fi
+exit $exitcode
+