public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Subject: [for-next][PATCH 4/5] ktest: Add name to running title
Date: Mon, 24 Nov 2014 10:42:55 -0500	[thread overview]
Message-ID: <20141124154332.253784964@goodmis.org> (raw)
In-Reply-To: 20141124154251.345600733@goodmis.org

[-- Attachment #1: 0004-ktest-Add-name-to-running-title.patch --]
[-- Type: text/plain, Size: 1181 bytes --]

From: "Steven Rostedt (Red Hat)" <rostedt@goodmis.org>

Instead of just showing the test type of test in the start of the
test, like this:

  RUNNING TEST 1 of 26 with option build defconfig

Add the name (if it is defined) as well, like this:

  RUNNING TEST 1 of 26 (arm64 aarch64-linux) with option build defconfig

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
 tools/testing/ktest/ktest.pl | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index ea43dd2f2fd5..35b118a38c2f 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -4086,8 +4086,14 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) {
     my $installme = "";
     $installme = " no_install" if ($no_install);
 
+    my $name = "";
+
+    if (defined($test_name)) {
+	$name = " ($test_name)";
+    }
+
     doprint "\n\n";
-    doprint "RUNNING TEST $i of $opt{NUM_TESTS} with option $test_type $run_type$installme\n\n";
+    doprint "RUNNING TEST $i of $opt{NUM_TESTS}$name with option $test_type $run_type$installme\n\n";
 
     if (defined($pre_test)) {
 	run_command $pre_test;
-- 
2.1.1



  parent reply	other threads:[~2014-11-24 15:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-24 15:42 [for-next][PATCH 0/5] ktest: Updates for 3.19 Steven Rostedt
2014-11-24 15:42 ` [for-next][PATCH 1/5] ktest: Use make -s kernelrelease Steven Rostedt
2014-11-24 15:42 ` [for-next][PATCH 2/5] ktest: Fix make_min_config to handle new assign_configs call Steven Rostedt
2014-11-24 15:42 ` [for-next][PATCH 3/5] ktest: Allow tests to undefine default options Steven Rostedt
2014-11-24 15:42 ` Steven Rostedt [this message]
2014-11-24 15:42 ` [for-next][PATCH 5/5] ktest: Add back "tail -1" to kernelrelease make Steven Rostedt

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=20141124154332.253784964@goodmis.org \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox