All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] utils: test: show test name before running it
@ 2026-07-07 11:01 Hannes Diethelm
  2026-07-07 13:43 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Hannes Diethelm @ 2026-07-07 11:01 UTC (permalink / raw)
  To: xenomai, rpm; +Cc: Hannes Diethelm

This way, the running test is visible. This helps for longer running or
freezed tests.

The log is now shown after the test name.

Signed-off-by: Hannes Diethelm <hannes.diethelm@gmail.com>
---
 utils/evl-test | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/utils/evl-test b/utils/evl-test
index fa3ef73..5139d09 100644
--- a/utils/evl-test
+++ b/utils/evl-test
@@ -83,22 +83,23 @@ result=0
 while : ; do
       for t in $test_list; do
 	  test \! -x $t && echo "$(basename $0): $(basename $t): no such test" && exit 2
+	  echo -n "$(basename $t):"
 	  # Swap stdout<->stderr for the test, capturing stderr into $log.
 	  log=$($t $test_arg_list 3>&1 1>&2 2>&3)
 	  status=$?
 	  if test $status = 43; then
-	      echo "$(basename $t): $log"
+	      echo " $log"
 	  else
-	      test -n "$log" && echo "$log"
 	      if test $status = 0; then
-		  echo "$(basename $t): OK"
+		  echo " OK"
 	      elif test $status = 42; then
-		  echo "$(basename $t): no kernel support"
+		  echo " no kernel support"
 	      else
-		  echo "** $(basename $t): BROKEN"
+		  echo " ** BROKEN"
 		  result=$status
-		  test x$keep_going = xfalse && break
 	      fi
+	      test -n "$log" && echo "$log"
+	      test $result -ne 0 && test x$keep_going = xfalse && break
 	  fi
       done
       test x$repeat = xfalse && break
-- 
2.47.3


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

end of thread, other threads:[~2026-07-07 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-07 11:01 [PATCH] utils: test: show test name before running it Hannes Diethelm
2026-07-07 13:43 ` Philippe Gerum

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.