From: Masami Hiramatsu Date: Tue, 23 May 2017 06:07:57 +0000 (+0900) Subject: selftests/ftrace: Add instance indication in test log X-Git-Tag: v4.14-rc1~548^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1917d2c82bc4ba121b16c4afcaf0c3723c36bf4e;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest index 7175811..14a03ea 100755 --- a/tools/testing/selftests/ftrace/ftracetest +++ b/tools/testing/selftests/ftrace/ftracetest @@ -250,7 +250,7 @@ run_test() { # testfile local testlog=`mktemp $LOG_DIR/${testname}-log.XXXXXX` export TMPDIR=`mktemp -d /tmp/ftracetest-dir.XXXXXX` testcase $1 - echo "execute: "$1 > $testlog + echo "execute$INSTANCE: "$1 > $testlog SIG_RESULT=0 if [ $VERBOSE -ge 2 ]; then __run_test $1 2>> $testlog | tee -a $testlog