]> git.baikalelectronics.ru Git - kernel.git/commit
ftracetest: Use proper logic to find process PID
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Mon, 23 May 2016 14:04:46 +0000 (10:04 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 23 May 2016 14:04:46 +0000 (10:04 -0400)
commitab2fcd057361eecc4202eb1da83d836d531f8421
tree98e263b36b4bef68ef015a44850982566a642236
parent256fb18a6d43134e537de5106427db9338485e90
ftracetest: Use proper logic to find process PID

Half of the test in instance-event.tc was updated to use $! to find the PID
of the previous background process that was launched, but the second part of
the test still used the parsing of "jobs", which does not work on all shells
like $! does.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/instances/instance-event.tc