Fix validate_trace_empty test check
authorJulien Desfossez <jdesfossez@efficios.com>
Thu, 21 Dec 2017 20:28:56 +0000 (15:28 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 25 Apr 2018 15:21:11 +0000 (11:21 -0400)
commitb98a9439f9095e18fd38db466f1e89fb64e7aca0
tree859cb8dcc749eac7aa44e37cb5a9e20506ca9cdd
parente1c90e7503f0d4b20bbbb05fa19950573c3691f9
Fix validate_trace_empty test check

Since the output of babeltrace was directly piped into wc, the return
code was never an error even if the trace was invalid. We now split the
commands in two parts: process the trace with babeltrace and check the
error code, and then count the number of lines.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/utils.sh
This page took 0.025659 seconds and 4 git commands to generate.