tests: fix shellcheck warnings in plugins/sink.ctf.fs
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 2 Aug 2022 19:40:58 +0000 (15:40 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 16 Aug 2022 19:50:37 +0000 (15:50 -0400)
commitc169867cabd97bbdb445b04010f7ededc9e3f2c3
treea825fdc25ce6446880e0899591533ace18264cdf
parentffa209addac22ab2fddcd18f42bafaa0410068e4
tests: fix shellcheck warnings in plugins/sink.ctf.fs

Fix:

    In test_stream_names line 43:
            echo "Created CTF trace \`$(cygpath -m ${temp_output_dir})\\trace\`." > "$temp_expected_stdout"
                 ^-- SC2028 (info): echo may not expand escape sequences. Use printf.
                                                   ^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

    Did you mean:
            echo "Created CTF trace \`$(cygpath -m "${temp_output_dir}")\\trace\`." > "$temp_expected_stdout"

    In test_assume_single_trace line 41:
            echo "Created CTF trace \`$(cygpath -m ${trace_dir})\`." > "$temp_expected_stdout"
                                                   ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

    Did you mean:
            echo "Created CTF trace \`$(cygpath -m "${trace_dir}")\`." > "$temp_expected_stdout"

Change-Id: I483ce2ba6c35c2ca191bf5ca1352ac97a0a9c157
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8637
tests/plugins/sink.ctf.fs/test_assume_single_trace
tests/plugins/sink.ctf.fs/test_stream_names
This page took 0.025098 seconds and 4 git commands to generate.