X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fplugins%2Fsink.ctf.fs%2Ftest_stream_names;h=e5993c7d0e6898657ce97a29c88a34bb422b9f02;hb=c169867cabd97bbdb445b04010f7ededc9e3f2c3;hp=a60a1dbf97cd3ecebf0f3256fa36338e4b9ab4f4;hpb=a0baab4a979e830f7dc4698c20b71e84dea6ff9d;p=babeltrace.git diff --git a/tests/plugins/sink.ctf.fs/test_stream_names b/tests/plugins/sink.ctf.fs/test_stream_names index a60a1dbf..e5993c7d 100755 --- a/tests/plugins/sink.ctf.fs/test_stream_names +++ b/tests/plugins/sink.ctf.fs/test_stream_names @@ -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" @@ -40,7 +40,8 @@ ok "$?" "run babeltrace" # Check stdout. if [ "$BT_TESTS_OS_TYPE" = "mingw" ]; then - echo "Created CTF trace \`$(cygpath -m ${temp_output_dir})\\trace\`." > "$temp_expected_stdout" + # 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