tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / plugins / src.ctf.fs / test_deterministic_ordering
index 02a76c20a92581f1ede08c121bcd414746e0e0c2..9eb8b8f64b6994408d41bb2a4356c442a9e87d74 100755 (executable)
@@ -28,7 +28,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"
This page took 0.02396 seconds and 4 git commands to generate.