tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / plugins / sink.ctf.fs / test_assume_single_trace
index e8508dc3945869fac51caa45b8ac8957331e9a86..6af7aa05cfe83b2e7b4843b1f3f3d7f54c17cbdb 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,7 +37,7 @@ bt_cli "$temp_stdout" "$temp_stderr" \
 ok "$?" "run sink.ctf.fs with assume-single-trace=true"
 
 # Check stdout.
-if [ "$BT_OS_TYPE" = "mingw" ]; then
+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"
This page took 0.026215 seconds and 4 git commands to generate.