diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-11-21 19:28:24 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-11-21 19:38:58 -0500 |
commit | 18656c7099c627bdf8579b21dea512e0a8addbb9 (patch) | |
tree | e1b8db98e6303e93858f6ce0112c6f04547b2df6 /tools | |
parent | 22c37a9ac49d0bf3ec384cdbc60a5600d48e298e (diff) | |
download | blackbird-op-linux-18656c7099c627bdf8579b21dea512e0a8addbb9.tar.gz blackbird-op-linux-18656c7099c627bdf8579b21dea512e0a8addbb9.zip |
ktest: Add name to running title
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>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/ktest/ktest.pl | 8 |
1 files changed, 7 insertions, 1 deletions
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; |