fix: test_trimmer on macOs and Solaris
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 8 Jul 2019 19:47:21 +0000 (15:47 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:34 +0000 (11:53 -0400)
commite868448768db5bda285075e29cf21b8357f49874
tree345007673357ac04a48f512f8e262178dca4ce4b
parentd660133bad3891e945918172562257d16ec06235
fix: test_trimmer on macOs and Solaris

The 'wc' tool on BSD based system adds leading spaces to it's output,
which breaks the quoted compare. Use bash parameter expansion to trim all
spaces from the 'num_events' variable.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Change-Id: I884f59cf1fcdcb33419dd02c69886715ce4db71b
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1654
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
tests/cli/test_trimmer
This page took 0.025799 seconds and 4 git commands to generate.