Fix: support for older versions of Babeltrace in test script
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 20 Dec 2016 21:31:26 +0000 (16:31 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 9 Jan 2017 16:59:13 +0000 (11:59 -0500)
commit4b2c2c11848c5a8ce757c1020c511389eab99008
tree06eac4aacf43fa4e6071c6cc9c6f21cb32cfec4d
parentfb549e7ac25c17c8bfa0f2d407c3802ffe2609fb
Fix: support for older versions of Babeltrace in test script

A new context field was introduced in version LTTng 2.8 that is printed
by Babeltrace prior to v1.2.5. This regex thus fails to match the
output. Since the context fields are not used by the script, we create a
non-capturing group for these fields that matches on both old and new
Babeltrace.
This is causing problems on Ubuntu 14.04 Trusty when building
lttng-tools from source and using the Babeltrace package from the
official repository (v1.2.1) to run the test suite.

Also, this patch removes commented and used code in the function but
keeps the names of non-capturing groups for readability.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
CC: Philippe Proulx <pproulx@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/babelstats.pl
This page took 0.026385 seconds and 5 git commands to generate.