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)
commit97f8827a8c7963756ae7d3ee898675b4667eca73
tree98e263b36b4bef68ef015a44850982566a642236
parent8329e818f14926a6040df86b2668568bde342ebf
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