tests: silence "variable/expression in single quote" shellcheck warnings
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 20 Nov 2019 16:20:29 +0000 (11:20 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 20 Nov 2019 19:04:09 +0000 (14:04 -0500)
commit4656d91f23f6d9bdfcbf1cfed580c75d6b31e84c
treea20f14bbcdc378cc7fed4d544df4fa59659a1da5
parent6b66b7a98ed3e3a0056c6b157c3781efbda08770
tests: silence "variable/expression in single quote" shellcheck warnings

shellcheck complains that we use a variable in single quotes:

    In test_trace_copy line 63:
                    uniq_ts_cnt="$("${BT_TESTS_AWK_BIN}" '{ print $1 }' < "${text_output1}" | sort | uniq | wc -l)"
                                                         ^------------^ SC2016: Expressions don't expand in single quotes, use double quotes for that.

In other cases, it's because of backticks (`) in a single quote string.

Silence these warnings locally by putting the appropriate comment:

    # shellcheck disable=SC2016

Reported-by: shellcheck
Change-Id: Ib2cfa73f84ba8746d3793e49721ead171c24dd99
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2418
Tested-by: jenkins <jenkins@lttng.org>
tests/cli/convert/test_auto_source_discovery_grouping
tests/cli/test_trace_copy
This page took 0.025114 seconds and 4 git commands to generate.