tests/src.ctf.fs/test_fail: test with both autodiscovery and explicit component insta...
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 10 Nov 2023 16:33:48 +0000 (16:33 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commit6c43935c771c9178a62eeb5329ef1c2c0d784640
treedb56720c1105820e5451b449d1daf742e48339eb
parent864def8254056d84734ae74f7c64b25776d6e865
tests/src.ctf.fs/test_fail: test with both autodiscovery and explicit component instantiation

Specifying a path to a failing trace like this:

  babeltrace2 mytrace

vs

  babeltrace2 -c src.ctf.fs -p 'inputs=["mytrace"]'

... exercises different code paths.  If the failure is due to bad
metadata, the first one will error out during the support-info query
phrase, whereas the second one will error out in the component
initialization.  I think it would be good to exercise both in the test
with failing traces.

Rename the test_fail function to test_fail_method, and add a parameter
indicating which method of passing the trace path to use (autodisc vs
component).  Add a new test_fail function that tries with both methods.

Change-Id: Ieb65504a773b0915946f8ef543a7d0930ca0a7d7
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12750
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/plugins/src.ctf.fs/fail/test-fail.sh
tests/utils/utils.sh
This page took 0.02404 seconds and 4 git commands to generate.