summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2021-10-22 10:49:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-03 11:19:04 +0000
commit5e975a66e1450c60127db5849304d8ad9ba0c637 (patch)
tree52672864224e6081c4c0fc63b9fddd927676d7f1 /meta
parentf9d6b608d374f751205355fd72b247f31b1e0865 (diff)
downloadpoky-5e975a66e1450c60127db5849304d8ad9ba0c637.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: f59a20574046a2027746010311129342442857f0) 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>
Diffstat (limited to 'meta')
-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 @@
1#!/bin/sh 1#!/bin/sh
2
3set -u
4
2export TIMEOUT_DURATION=240 5export TIMEOUT_DURATION=240
3chown nobody tests 6chown nobody tests
4chown nobody tests/* 7chown nobody tests/*
5chown nobody ../ptest 8chown nobody ../ptest
9
6su nobody -c "make -B -C tests -k test-suite.log" 10su nobody -c "make -B -C tests -k test-suite.log"
11res=$?
12if [ $res -ne 0 ]; then
13 cat tests/test-suite.log
14fi
15exit $res