Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
test-lib: use 'test ...' instead of '[ ... ]'
author
Richard Hansen
<rhansen@bbn.com>
Tue, 6 Jan 2015 22:57:50 +0000
(17:57 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 7 Jan 2015 18:36:42 +0000
(10:36 -0800)
(see Documentation/CodingGuidelines)
Signed-off-by: Richard Hansen <rhansen@bbn.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
c5b9256
)
diff --git
a/t/test-lib.sh
b/t/test-lib.sh
index 9acdc8826fff1aabf9df5182a64109b7bd16cd8d..3670eed018d2d59509bd0546b118484026528db5 100644
(file)
--- a/
t/test-lib.sh
+++ b/
t/test-lib.sh
@@
-184,10
+184,10
@@
export _x05 _x40 _z40 LF u200c
# This test checks if command xyzzy does the right thing...
# '
# . ./test-lib.sh
# This test checks if command xyzzy does the right thing...
# '
# . ./test-lib.sh
-
[ "x$ORIGINAL_TERM" != "xdumb" ]
&& (
+
test "x$ORIGINAL_TERM" != "xdumb"
&& (
TERM=$ORIGINAL_TERM &&
export TERM &&
TERM=$ORIGINAL_TERM &&
export TERM &&
-
[ -t 1 ]
&&
+
test -t 1
&&
tput bold >/dev/null 2>&1 &&
tput setaf 1 >/dev/null 2>&1 &&
tput sgr0 >/dev/null 2>&1
tput bold >/dev/null 2>&1 &&
tput setaf 1 >/dev/null 2>&1 &&
tput sgr0 >/dev/null 2>&1
@@
-684,7
+684,7
@@
test_done () {
then
error "Can't use skip_all after running some tests"
fi
then
error "Can't use skip_all after running some tests"
fi
-
[ -z "$skip_all" ]
|| skip_all=" # SKIP $skip_all"
+
test -z "$skip_all"
|| skip_all=" # SKIP $skip_all"
if test $test_external_has_tap -eq 0
then
if test $test_external_has_tap -eq 0
then