tests: cleanup cli/convert/test_convert_args
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 25 Feb 2020 19:55:34 +0000 (14:55 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 26 Feb 2020 14:10:00 +0000 (09:10 -0500)
commit1fc9327bfe9c086e7b9e35fc2a9e67dd1d969db4
tree1c9c50d16abc1cb2f64b233b2b36b5f911747d0b
parent5d4818b14e2e480b6d33c586ef52c0e4a177871b
tests: cleanup cli/convert/test_convert_args

A few cleanups:

- Use bt_cli instead of running the babeltrace binary by hand.
- Give a base name to the temporary files.
- Split CLI arguments into an array before passing them to bt_cli (this
  avoids a shellcheck warning).

bt_cli prints the executed command line, so it becomes unnecessary to
print it manually in this test, which allows simplifying things a bit.

Change-Id: I043099b460ba4ab428beb305de4fe0ad51c20de7
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3142
Tested-by: jenkins <jenkins@lttng.org>
tests/cli/convert/test_convert_args
This page took 0.024435 seconds and 4 git commands to generate.