aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2017-05-23 02:07:57 -0400
committerShuah Khan <shuahkh@osg.samsung.com>2017-06-07 13:00:01 -0400
commit1917d2c82bc4ba121b16c4afcaf0c3723c36bf4e (patch)
treec47fc7d4a465a5691cc21a54020d4f8edbd95e63 /tools
parentd7b91c0b1c7f40241d8d47f0a2a0d616a1127635 (diff)
selftests/ftrace: Add instance indication in test log
Add instance test indication in test log too. Current ftracetest shows instance test indication on the list of test, but not in the log for each test. This adds instance test indication on the top of each log, like below; execute (instance) : /ftrace/test.d/ftrace/func_set_ftrace_file.tc Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/ftrace/ftracetest2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest
index 717581145cfc..14a03ea1e21d 100755
--- a/tools/testing/selftests/ftrace/ftracetest
+++ b/tools/testing/selftests/ftrace/ftracetest
@@ -250,7 +250,7 @@ run_test() { # testfile
250 local testlog=`mktemp $LOG_DIR/${testname}-log.XXXXXX` 250 local testlog=`mktemp $LOG_DIR/${testname}-log.XXXXXX`
251 export TMPDIR=`mktemp -d /tmp/ftracetest-dir.XXXXXX` 251 export TMPDIR=`mktemp -d /tmp/ftracetest-dir.XXXXXX`
252 testcase $1 252 testcase $1
253 echo "execute: "$1 > $testlog 253 echo "execute$INSTANCE: "$1 > $testlog
254 SIG_RESULT=0 254 SIG_RESULT=0
255 if [ $VERBOSE -ge 2 ]; then 255 if [ $VERBOSE -ge 2 ]; then
256 __run_test $1 2>> $testlog | tee -a $testlog 256 __run_test $1 2>> $testlog | tee -a $testlog