fix: test_trimmer on macOs and Solaris
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 17 Jun 2019 16:10:34 +0000 (12:10 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 20 Jun 2019 18:49:17 +0000 (14:49 -0400)
commit891c35e417a23d70b5e5bfd4e52b4179c74afb0f
tree86f8765930932c049ccd45fbc21318534904a063
parentb359e35009f1e3fffd653416b2218295527e9c2a
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.024434 seconds and 4 git commands to generate.