From c43b4d6785068eb76183bcc64188913f5c189a11 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 22 Oct 2021 10:49:43 +0100 Subject: strace: show test suite log on failure If the tests fail, dump the log so we can see the failures. (From OE-Core rev: 3154a65039831b1e041217707fdd6ca042f588fb) Signed-off-by: Ross Burton Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/recipes-devtools/strace/strace/run-ptest | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'meta/recipes-devtools/strace') 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 -- cgit v1.2.3-54-g00ecf