projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: use -z / -n to test for string empty / non-empty
[babeltrace.git]
/
tests
/
lib
/
conds
/
test_conds
diff --git
a/tests/lib/conds/test_conds
b/tests/lib/conds/test_conds
index 851079a4e7aa3876cf9c23404cd42cf448104274..af66f6d299fe2cac951b65a63f1bee873bde8a7f 100755
(executable)
--- a/
tests/lib/conds/test_conds
+++ b/
tests/lib/conds/test_conds
@@
-4,7
+4,7
@@
#
# Copyright (C) 2020 Philippe Proulx <pproulx@efficios.com>
#
# Copyright (C) 2020 Philippe Proulx <pproulx@efficios.com>
-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"
UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh"
else
UTILSSH="$(dirname "$0")/../../utils/utils.sh"
This page took
0.023812 seconds
and
4
git commands to generate.