mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 14:02:22 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
47e8cde01f
commit
d35822d09a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user