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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Nov 2019 19:24:17 +0000 (14:24 -0500)
commit4ef30ab5558466c9c65a5ed0438bab7b9f46d74c
tree000f307ce3305f76859ca602d29650e2198590b7
parent36aa69d73533105693fe0537dc81bcf31256ac91
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.024665 seconds and 4 git commands to generate.