fix: test_trimmer on macOs and Solaris
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 17 Jun 2019 16:10:34 +0000 (12:10 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 20 Jun 2019 18:51:59 +0000 (14:51 -0400)
commit963ebee46104fe16404794f5d1dd96b57f6c571d
treebc877965b5a04d0a13cea0fc743d77153b4cf9d2
parentd2d4608fd29027a88aa9f31b1827b19e680e4c56
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: Michael Jeanson <mjeanson@efficios.com>
Change-Id: I15aef8c6987e40bcb018f32c7c094eabbc3d83c3
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1476
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
tests/cli/test_trimmer.in
This page took 0.023956 seconds and 4 git commands to generate.