tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / cli / list-plugins / test_list_plugins
index 7184aa4656744d854f77f094ab62d9f4564f43c5..595eb4db3db3b500ebc263955c0ca1c81dff5c33 100755 (executable)
@@ -5,7 +5,7 @@
 # Copyright (C) 2019 EfficiOS Inc.
 #
 
-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"
@@ -34,7 +34,7 @@ ok "$?" "exit code is 0"
 grep --after-context=11 '^this-is-a-plugin:$' "${stdout_file}" > "${grep_stdout_file}"
 ok "$?" "entry for this-is-a-plugin is present"
 
-if [ "$BT_OS_TYPE" = "mingw" ]; then
+if [ "$BT_TESTS_OS_TYPE" = "mingw" ]; then
        platform_plugin_dir=$(cygpath -m "${plugin_dir}")
 else
        platform_plugin_dir="${plugin_dir}"
This page took 0.023769 seconds and 4 git commands to generate.