linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] Align FAILED to test name to be parsable
@ 2012-10-20 16:03 Gilles Espinasse
  2012-10-21 22:08 ` NeilBrown
  0 siblings, 1 reply; 6+ messages in thread
From: Gilles Espinasse @ 2012-10-20 16:03 UTC (permalink / raw)
  To: linux-raid, neilb; +Cc: Gilles Espinasse

Signed-off-by: Gilles Espinasse <g.esp@free.fr>

So 'grep FAILED log' is now meaningfull.
Let both stdout and sderr be displayed after a failed test
---
 test |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/test b/test
index 9340afe..2bb482c 100755
--- a/test
+++ b/test
@@ -222,12 +222,13 @@ do_test() {
     # source script in a subshell, so it has access to our
     # namespace, but cannot change it.
     echo -ne "$_script... "
-    if ( set -ex ; . $_script )  2> $targetdir/log
+    if ( set -ex ; . $_script ) &> $targetdir/log
     then
       echo "succeeded"
       _fail=0
     else
-      echo "FAILED - see $targetdir/log for details"
+      echo "FAILED"
+      cat $targetdir/log
       _fail=1
     fi
     if [ "$savelogs" == "1" ]; then
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-12  5:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-20 16:03 [PATCH 1/3] Align FAILED to test name to be parsable Gilles Espinasse
2012-10-21 22:08 ` NeilBrown
2012-10-22  8:31   ` g.esp
2012-10-22 22:23     ` NeilBrown
2012-10-23  8:31       ` g.esp
2012-11-12  5:48         ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).