tests: improve debuggability of `cli/test-trace-copy.sh`
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 1 Mar 2024 15:49:47 +0000 (10:49 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Mar 2024 18:56:36 +0000 (14:56 -0400)
commitbfa3d907d7e1d21d73c63a4b8bcf213aa4ca3d1d
tree12838e442f0a30e2f83b1221aca0617ab5e0c8a5
parentab3bed93f8d6270a24b4a12bd5c19dcf5b0f61c6
tests: improve debuggability of `cli/test-trace-copy.sh`

When something fails in `cli/test-trace-copy.sh`, we don't really know
why, as everything is sent to `/dev/null`.

Make the test record stderr and print it (using tap's `diag`) when
something fails.

Add the `diag_file` helper to make that easy.

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