Skip to content

Commit 46f32a9

Browse files
rhansengitster
authored andcommitted
test-lib: use 'test ...' instead of '[ ... ]'
(see Documentation/CodingGuidelines) Signed-off-by: Richard Hansen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c5b9256 commit 46f32a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/test-lib.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ export _x05 _x40 _z40 LF u200c
184184
# This test checks if command xyzzy does the right thing...
185185
# '
186186
# . ./test-lib.sh
187-
[ "x$ORIGINAL_TERM" != "xdumb" ] && (
187+
test "x$ORIGINAL_TERM" != "xdumb" && (
188188
TERM=$ORIGINAL_TERM &&
189189
export TERM &&
190-
[ -t 1 ] &&
190+
test -t 1 &&
191191
tput bold >/dev/null 2>&1 &&
192192
tput setaf 1 >/dev/null 2>&1 &&
193193
tput sgr0 >/dev/null 2>&1
@@ -684,7 +684,7 @@ test_done () {
684684
then
685685
error "Can't use skip_all after running some tests"
686686
fi
687-
[ -z "$skip_all" ] || skip_all=" # SKIP $skip_all"
687+
test -z "$skip_all" || skip_all=" # SKIP $skip_all"
688688

689689
if test $test_external_has_tap -eq 0
690690
then

0 commit comments

Comments
 (0)