diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-18 11:28:51 +0530 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-08-26 04:24:02 -1000 |
| commit | 8f53c7b15181c6d4c31ac700267be20d45b2801f (patch) | |
| tree | f66fd91a4d8e840a50a635c323c92c26f27e9e7e | |
| parent | 5c42f2433c9a2135e68ba3ae1dfb8ef04a11b0d7 (diff) | |
| download | poky-8f53c7b15181c6d4c31ac700267be20d45b2801f.tar.gz | |
acl/attr: ptest fixes and improvements
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)
(From OE-Core rev: 5908ccf65b5ca4a0473a57774f06515d6bc9f56c)
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>
| -rw-r--r-- | meta/recipes-support/attr/acl/run-ptest | 6 | ||||
| -rw-r--r-- | meta/recipes-support/attr/acl_2.3.1.bb | 1 | ||||
| -rw-r--r-- | meta/recipes-support/attr/attr.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-support/attr/attr/run-ptest | 7 |
4 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-support/attr/acl/run-ptest b/meta/recipes-support/attr/acl/run-ptest index 4312823365..3af75c84fe 100644 --- a/meta/recipes-support/attr/acl/run-ptest +++ b/meta/recipes-support/attr/acl/run-ptest | |||
| @@ -7,4 +7,10 @@ | |||
| 7 | mkdir -p /tmp/acl-ptest/test | 7 | mkdir -p /tmp/acl-ptest/test |
| 8 | cp test/test.* /tmp/acl-ptest/test | 8 | cp test/test.* /tmp/acl-ptest/test |
| 9 | 9 | ||
| 10 | set +e | ||
| 10 | make test-suite.log | 11 | make test-suite.log |
| 12 | exitcode=$? | ||
| 13 | if [ $exitcode -ne 0 -a -e test-suite.log ]; then | ||
| 14 | cat test-suite.log | ||
| 15 | fi | ||
| 16 | exit $exitcode | ||
diff --git a/meta/recipes-support/attr/acl_2.3.1.bb b/meta/recipes-support/attr/acl_2.3.1.bb index aca04a9aac..c2c9ba9069 100644 --- a/meta/recipes-support/attr/acl_2.3.1.bb +++ b/meta/recipes-support/attr/acl_2.3.1.bb | |||
| @@ -62,6 +62,7 @@ RDEPENDS:${PN}-ptest = "acl \ | |||
| 62 | bash \ | 62 | bash \ |
| 63 | coreutils \ | 63 | coreutils \ |
| 64 | perl \ | 64 | perl \ |
| 65 | perl-module-constant \ | ||
| 65 | perl-module-filehandle \ | 66 | perl-module-filehandle \ |
| 66 | perl-module-getopt-std \ | 67 | perl-module-getopt-std \ |
| 67 | perl-module-posix \ | 68 | perl-module-posix \ |
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc index a4e38f2b19..56028edb12 100644 --- a/meta/recipes-support/attr/attr.inc +++ b/meta/recipes-support/attr/attr.inc | |||
| @@ -50,6 +50,7 @@ do_install_ptest() { | |||
| 50 | 50 | ||
| 51 | RDEPENDS:${PN}-ptest = "attr \ | 51 | RDEPENDS:${PN}-ptest = "attr \ |
| 52 | coreutils \ | 52 | coreutils \ |
| 53 | perl-module-constant \ | ||
| 53 | perl-module-filehandle \ | 54 | perl-module-filehandle \ |
| 54 | perl-module-getopt-std \ | 55 | perl-module-getopt-std \ |
| 55 | perl-module-posix \ | 56 | perl-module-posix \ |
diff --git a/meta/recipes-support/attr/attr/run-ptest b/meta/recipes-support/attr/attr/run-ptest index f64244f239..3e7a3a17a0 100644 --- a/meta/recipes-support/attr/attr/run-ptest +++ b/meta/recipes-support/attr/attr/run-ptest | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | set +e | ||
| 3 | make test-suite.log | 4 | make test-suite.log |
| 5 | exitcode=$? | ||
| 6 | if [ $exitcode -ne 0 -a -e test-suite.log ]; then | ||
| 7 | cat test-suite.log | ||
| 8 | fi | ||
| 9 | exit $exitcode | ||
| 10 | |||
