testsuite should use babeltrace2 binary if found
On a fresh system install, installing all lttng projects (master branches) and babeltrace (master branch) yield to lttng-tools make check failure because it is hardwired to use the "babeltrace" binary. However, babeltrace master branch now installs the "babeltrace2" binary.
One way to fix this would be to use the "babeltrace2" binary if found, else fallback on the "babeltrace" binary.
Updated by Mathieu Desnoyers about 1 month ago
I'm working on a fix for all use of the babeltrace binary.
There will be a single test which uses the babeltrace Python API which will require more care, because the API is changed: ./regression/kernel/validate_select_poll_epoll.py.
I will open a separate ticket for it.