tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / cli / convert / test_auto_source_discovery_log_level
index b7163234eb6d3bcb723f3024f4550d5687465a74..56df66fab33d855f8edfcef7ce569d3bb8f1114f 100755 (executable)
@@ -8,7 +8,7 @@
 # Test how log level options are applied to sources auto-discovered by the
 # convert command.
 
-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.023025 seconds and 4 git commands to generate.