From: Masami Hiramatsu <mhiramat@kernel.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>,
Shuah Khan <shuah@kernel.org>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@redhat.com>,
Namhyung Kim <namhyung@kernel.org>,
Tom Zanussi <tom.zanussi@linux.intel.com>,
linux-kselftest@vger.kernel.org
Subject: [PATCH 3/5] selftests: ftrace: Introduce TMPDIR for temporary files
Date: Wed, 19 Oct 2016 13:53:56 +0900 [thread overview]
Message-ID: <147685283587.8760.2601950190140526395.stgit@devbox> (raw)
In-Reply-To: <147685280526.8760.8021110184607782896.stgit@devbox>
Introduce TMPDIR variable which is removed after each test
is done, so that the test script can put their temporary
files in that.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
---
tools/testing/selftests/ftrace/ftracetest | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest
index 4c6a0bf..172750f 100755
--- a/tools/testing/selftests/ftrace/ftracetest
+++ b/tools/testing/selftests/ftrace/ftracetest
@@ -236,6 +236,7 @@ __run_test() { # testfile
run_test() { # testfile
local testname=`basename $1`
local testlog=`mktemp $LOG_DIR/${testname}-log.XXXXXX`
+ export TMPDIR=`mktemp -d /tmp/ftracetest-dir.XXXXXX`
testcase $1
echo "execute: "$1 > $testlog
SIG_RESULT=0
@@ -252,6 +253,7 @@ run_test() { # testfile
catlog $testlog
TOTAL_RESULT=1
fi
+ rm -rf $TMPDIR
}
# load in the helper functions
next prev parent reply other threads:[~2016-10-19 4:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-19 4:53 [PATCH 0/5] ftrace: selftests: Add full glob matching and update ftracetest Masami Hiramatsu
2016-10-19 4:53 ` [PATCH 1/5] ftrace: Support full glob matching Masami Hiramatsu
2016-10-19 13:20 ` Steven Rostedt
2016-10-20 2:07 ` Masami Hiramatsu
2016-10-20 13:43 ` Steven Rostedt
2016-10-21 16:43 ` Masami Hiramatsu
2016-10-19 4:53 ` [PATCH 2/5] selftests: ftrace: Fix test cases to enable tracing Masami Hiramatsu
2016-10-24 19:50 ` Steven Rostedt
2016-10-25 9:51 ` Masami Hiramatsu
2016-10-19 4:53 ` Masami Hiramatsu [this message]
2016-10-19 4:54 ` [PATCH 4/5] selftests: ftrace: Add a testcase for function filter glob match Masami Hiramatsu
2016-10-19 4:54 ` [PATCH 5/5] selftests: ftrace: Add a testcase for types of kprobe event Masami Hiramatsu
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=147685283587.8760.2601950190140526395.stgit@devbox \
--to=mhiramat@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=rostedt@goodmis.org \
--cc=shuah@kernel.org \
--cc=tom.zanussi@linux.intel.com \
/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