summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2021-10-22 10:49:43 +0100
committerAnuj Mittal <anuj.mittal@intel.com>2021-11-02 09:09:39 +0800
commitb5e799b94d918ad908eab5a0daf6a0ee460d7581 (patch)
tree90dc6e0fe8896107a6d15d7c1feba24c89eb968e /meta/recipes-devtools
parent767a12b4e2cd55faf91fa1b918b73e7562ec5bc5 (diff)
downloadopenembedded-core-contrib-b5e799b94d918ad908eab5a0daf6a0ee460d7581.tar.gz
strace: show test suite log on failure
If the tests fail, dump the log so we can see the failures. 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>
Diffstat (limited to 'meta/recipes-devtools')
-rwxr-xr-xmeta/recipes-devtools/strace/strace/run-ptest9
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 @@
#!/bin/sh
+
+set -u
+
export TIMEOUT_DURATION=240
chown nobody tests
chown nobody tests/*
chown nobody ../ptest
+
su nobody -c "make -B -C tests -k test-suite.log"
+res=$?
+if [ $res -ne 0 ]; then
+ cat tests/test-suite.log
+fi
+exit $res