tests: print executed CLI command line in bt_cli
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 8 Aug 2019 17:58:47 +0000 (13:58 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 12 Aug 2019 02:19:51 +0000 (22:19 -0400)
commitea458b95e10c319e47b8c6e70395b147066b2357
tree0e404f585e580a06bb233300a4a92c0cf47274b1
parenta70b6702a213fc4b250e936515b163827b66348e
tests: print executed CLI command line in bt_cli

When debugging a test, it is often useful to have the complete
CLI command line executed, so we can copy paste it and reproduce
the failure by hand.

This patch makes bt_cli echo the executed CLI command line to
stderr, such that it will show up when running one test by hand and in
the test logs when running "make check".

This allows simplifying bt_diff: we no longer have to pass the
CLI arguments to have them included in the error message, since
the full CLI command line will typically be printed just above.

Change-Id: I64f8c80f648d06319efe4e7544447183ba8069cc
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1839
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/utils/utils.sh
This page took 0.024494 seconds and 4 git commands to generate.