tests: fix shellcheck warnings in cli/convert/test_auto_source_discovery_{log_level,params}
shellcheck complains:
In test_auto_source_discovery_params line 42:
print_test_params="--params what=\"test-params\""
^---------------------------^ SC2089: Quotes/backslashes will be treated literally. Use an array.
In test_auto_source_discovery_params line 68:
"${dir_ab}" --params 'test-allo="madame"' ${print_test_params} \
^------------------^ SC2090: Quotes/backslashes in this variable will not be respected.
^------------------^ SC2086: Double quote to prevent globbing and word splitting.
Did you mean:
"${dir_ab}" --params 'test-allo="madame"' "${print_test_params}" \
It would be cleaner to make it print_test_params an array, like we do
for details_sink.
Consistently double-quotes references to print_test_params and
details_sink to avoid the "word splitting" warnings.
Change-Id: I6b18effc29f3c453949b4c181e528e2a60cea4e4
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reported-by: shellcheck
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3145
Tested-by: jenkins <jenkins@lttng.org>
This page took 0.025102 seconds and 4 git commands to generate.