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>
Tue, 3 Apr 2018 16:12:28 +0000 (12:12 -0400)
commit2462eee73d84fdad7bf6c6943fbf53e5a263af30
tree2a3bf995702739329d8b6d882abec89272c692a2
parent7779bc96ee56bdcb10bc91ee0631114a57229049
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.026034 seconds and 4 git commands to generate.