All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anuj Mittal <anuj.mittal@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [honister][PATCH 03/24] strace: show test suite log on failure
Date: Wed,  3 Nov 2021 00:43:51 +0800	[thread overview]
Message-ID: <b5e799b94d918ad908eab5a0daf6a0ee460d7581.1635871270.git.anuj.mittal@intel.com> (raw)
In-Reply-To: <cover.1635871270.git.anuj.mittal@intel.com>

From: Ross Burton <ross@burtonini.com>

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>
---
 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.31.1



  parent reply	other threads:[~2021-11-02 16:47 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-02 16:43 [honister][PATCH 00/24] Review request Anuj Mittal
2021-11-02 16:43 ` [honister][PATCH 01/24] python3-setuptools: _distutils/sysconfig fix Anuj Mittal
2021-11-02 16:43 ` [honister][PATCH 02/24] waffle: convert to git, website is down Anuj Mittal
2021-11-02 16:43 ` Anuj Mittal [this message]
2021-11-02 16:43 ` [honister][PATCH 04/24] classes/populate_sdk_base: Add setscene tasks Anuj Mittal
2021-11-02 16:43 ` [honister][PATCH 05/24] staging: Fix autoconf-native rebuild failure Anuj Mittal
2021-11-02 16:43 ` [honister][PATCH 06/24] linux-yocto/5.10: update to v5.10.73 Anuj Mittal
2021-11-02 16:43 ` [honister][PATCH 07/24] linux-yocto/5.14: update to v5.14.12 Anuj Mittal
2021-11-02 16:43 ` [honister][PATCH 08/24] linux-yocto/5.14: update to v5.14.13 Anuj Mittal
2021-11-02 16:43 ` [honister][PATCH 09/24] linux-yocto/5.10: update to v5.10.74 Anuj Mittal
2021-11-02 16:43 ` [honister][PATCH 10/24] linux-yocto/5.14: common-pc: enable CONFIG_ATA_PIIX as built-in Anuj Mittal
2021-11-02 16:43 ` [honister][PATCH 11/24] linux-yocto/5.14: update to v5.14.14 Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 12/24] linux-yocto/5.10: update to v5.10.75 Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 13/24] meson: move lang args to the right section Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 14/24] meson: install native file in sdk Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 15/24] go.bbclass: Allow adding parameters to go ldflags Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 16/24] stress-ng: convert to git, website is down Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 17/24] tzdata: upgrade 2021a -> 2021d Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 18/24] tzdata: update 2021d -> 2021e Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 19/24] spdx.py: Add annotation to relationship Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 20/24] create-spdx: add create_annotation function Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 21/24] create-spdx: cross recipes are native also Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 22/24] oeqa/runtime/parselogs: modified drm error in common errors list Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 23/24] meson.bblcass: Remove empty egg-info directories before running meson Anuj Mittal
2021-11-02 16:44 ` [honister][PATCH 24/24] qemu.inc: " Anuj Mittal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b5e799b94d918ad908eab5a0daf6a0ee460d7581.1635871270.git.anuj.mittal@intel.com \
    --to=anuj.mittal@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.