diff options
| author | Ross Burton <ross@burtonini.com> | 2021-10-22 10:49:43 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-08 23:40:59 +0000 |
| commit | d35822d09aa7267cafa7fc0caa83525af99ee6fd (patch) | |
| tree | 79f439f0cf95b7ca07fa368270f16b771beaea72 | |
| parent | 47e8cde01f3305ea8d29800e62ae93a3f313a036 (diff) | |
| download | poky-d35822d09aa7267cafa7fc0caa83525af99ee6fd.tar.gz | |
strace: show test suite log on failure
If the tests fail, dump the log so we can see the failures.
(From OE-Core rev: b5e799b94d918ad908eab5a0daf6a0ee460d7581)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3154a65039831b1e041217707fdd6ca042f588fb)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rwxr-xr-x | meta/recipes-devtools/strace/strace/run-ptest | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace/run-ptest b/meta/recipes-devtools/strace/strace/run-ptest index 3a51fb0be9..02bb91e07f 100755 --- a/meta/recipes-devtools/strace/strace/run-ptest +++ b/meta/recipes-devtools/strace/strace/run-ptest | |||
| @@ -1,6 +1,15 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | |||
| 3 | set -u | ||
| 4 | |||
| 2 | export TIMEOUT_DURATION=240 | 5 | export TIMEOUT_DURATION=240 |
| 3 | chown nobody tests | 6 | chown nobody tests |
| 4 | chown nobody tests/* | 7 | chown nobody tests/* |
| 5 | chown nobody ../ptest | 8 | chown nobody ../ptest |
| 9 | |||
| 6 | su nobody -c "make -B -C tests -k test-suite.log" | 10 | su nobody -c "make -B -C tests -k test-suite.log" |
| 11 | res=$? | ||
| 12 | if [ $res -ne 0 ]; then | ||
| 13 | cat tests/test-suite.log | ||
| 14 | fi | ||
| 15 | exit $res | ||
