Skip to content

Commit

Permalink
test-lib: use 'test ...' instead of '[ ... ]'
Browse files Browse the repository at this point in the history
(see Documentation/CodingGuidelines)

Signed-off-by: Richard Hansen <rhansen@bbn.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Richard Hansen authored and Junio C Hamano committed Jan 7, 2015
1 parent c5b9256 commit 46f32a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ export _x05 _x40 _z40 LF u200c
# 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 &&
[ -t 1 ] &&
test -t 1 &&
tput bold >/dev/null 2>&1 &&
tput setaf 1 >/dev/null 2>&1 &&
tput sgr0 >/dev/null 2>&1
Expand Down Expand Up @@ -684,7 +684,7 @@ test_done () {
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
Expand Down

0 comments on commit 46f32a9

Please sign in to comment.