tests: fix shellcheck warnings in plugins/sink.ctf.fs
[babeltrace.git] / tests / plugins / sink.ctf.fs / test_stream_names
index 03ed4174ce471691f625593e29bc26772ceb4002..e5993c7d0e6898657ce97a29c88a34bb422b9f02 100755 (executable)
@@ -12,7 +12,7 @@
 
 SH_TAP=1
 
-if [ "x${BT_TESTS_SRCDIR:-}" != "x" ]; then
+if [ -n "${BT_TESTS_SRCDIR:-}" ]; then
        UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh"
 else
        UTILSSH="$(dirname "$0")/../../utils/utils.sh"
@@ -39,8 +39,9 @@ bt_cli "$temp_stdout" "$temp_stderr" \
 ok "$?" "run babeltrace"
 
 # Check stdout.
-if [ "$BT_OS_TYPE" = "mingw" ]; then
-       echo "Created CTF trace \`$(cygpath -m ${temp_output_dir})\\trace\`." > "$temp_expected_stdout"
+if [ "$BT_TESTS_OS_TYPE" = "mingw" ]; then
+       # shellcheck disable=SC2028
+       echo "Created CTF trace \`$(cygpath -m "${temp_output_dir}")\\trace\`." > "$temp_expected_stdout"
 else
        echo "Created CTF trace \`${trace_dir}\`." > "$temp_expected_stdout"
 fi
This page took 0.022682 seconds and 4 git commands to generate.