ktest: add 2nd parameter of run_command() to set the redirect target file
authorSatoru Takeuchi <satoru.takeuchi@gmail.com>
Sun, 2 Mar 2014 12:20:31 +0000 (21:20 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 24 Apr 2014 03:18:09 +0000 (23:18 -0400)
commitf983a2bc9d355fb04932b38fee2533114c204cce
tree78625c19f7d442df9fa66eb3c57a64a202811b6a
parenta798c10faf62a505d24e5f6213fbaf904a39623f
ktest: add 2nd parameter of run_command() to set the redirect target file

If we'd like to set the redirect target file of run_command(),
we should define $redirect before calling this function and should undef it
after calling this function. Since it's user-unfriendly, add 2nd parameter of
run_command() for this purpose.

Link: http://lkml.kernel.org/r/87vbvwokq8.wl%satoru.takeuchi@gmail.com
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl