test-lib: use 'test ...' instead of '[ ... ]'
(see Documentation/CodingGuidelines) Signed-off-by: Richard Hansen <rhansen@bbn.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Richard Hansen committed
Jan 6, 2015 at 17:57 UTC
46f32a99b836ddb79a87690c4c4e2c7922f05896
1 file changed
+3
-3
t/test-lib.sh
+3
-3
@@ -184,10 +184,10 @@ export _x05 _x40 _z40 LF u200c
184
# This test checks if command xyzzy does the right thing...
185
# '
186
# . ./test-lib.sh
187
-[ "x$ORIGINAL_TERM" != "xdumb" ] && (
187
+test "x$ORIGINAL_TERM" != "xdumb" && (
188
TERM=$ORIGINAL_TERM &&
189
export TERM &&
190
- [ -t 1 ] &&
190
+ test -t 1 &&
191
tput bold >/dev/null 2>&1 &&
192
tput setaf 1 >/dev/null 2>&1 &&
193
tput sgr0 >/dev/null 2>&1
@@ -684,7 +684,7 @@ test_done () {
684
then
685
error "Can't use skip_all after running some tests"
686
fi
687
- [ -z "$skip_all" ] || skip_all=" # SKIP $skip_all"
687
+ test -z "$skip_all" || skip_all=" # SKIP $skip_all"
688
689
if test $test_external_has_tap -eq 0
690
then