tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / plugins / sink.text.pretty / test_enum
index b943efc0190a3d6f4215b089058b24afd341ba8f..723448b72ea85768ed828866f5a7704892869c29 100755 (executable)
@@ -8,7 +8,7 @@
 # not all covered by the main babeltrace tests with traces.
 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"
This page took 0.023317 seconds and 4 git commands to generate.