If the tests fail, dump the log so we can see the failures.

Signed-off-by: Ross Burton <ross.bur...@arm.com>
---
 meta/recipes-devtools/strace/strace/run-ptest | 9 +++++++++
 1 file changed, 9 insertions(+)

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
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#157295): 
https://lists.openembedded.org/g/openembedded-core/message/157295
Mute This Topic: https://lists.openembedded.org/mt/86510029/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to