tests: fix shellcheck warnings in plugins/sink.ctf.fs
[babeltrace.git] / tests / plugins / sink.ctf.fs / test_assume_single_trace
index e8508dc3945869fac51caa45b8ac8957331e9a86..69dfb3626c366d4a552d11f71223708b43cef654 100755 (executable)
@@ -9,7 +9,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"
@@ -37,8 +37,8 @@ bt_cli "$temp_stdout" "$temp_stderr" \
 ok "$?" "run sink.ctf.fs with assume-single-trace=true"
 
 # Check stdout.
-if [ "$BT_OS_TYPE" = "mingw" ]; then
-       echo "Created CTF trace \`$(cygpath -m ${trace_dir})\`." > "$temp_expected_stdout"
+if [ "$BT_TESTS_OS_TYPE" = "mingw" ]; then
+       echo "Created CTF trace \`$(cygpath -m "${trace_dir}")\`." > "$temp_expected_stdout"
 else
        echo "Created CTF trace \`${trace_dir}\`." > "$temp_expected_stdout"
 fi
This page took 0.023467 seconds and 4 git commands to generate.