diff options
author | Richard Hansen <rhansen@bbn.com> | 2015-01-06 17:57:50 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-01-07 10:36:42 -0800 |
commit | 46f32a99b836ddb79a87690c4c4e2c7922f05896 (patch) | |
tree | 9619c273a29dae9cbcee5a69deab121442511098 /t/test-lib.sh | |
parent | Merge branch 'for-junio' of git://bogomips.org/git-svn (diff) | |
download | tgif-46f32a99b836ddb79a87690c4c4e2c7922f05896.tar.xz |
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>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 9acdc8826f..3670eed018 100644 --- 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 -[ "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 @@ -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 |