summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2018-01-30 21:21:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-01-30 22:04:00 (GMT)
commit5008ba8c5e2bbb87a35a25440f9e920c511de674 (patch)
tree280178c3409fc472f49fce2866423b1328090967
parenta4a136f56ebd16113269c48863e456ed0a4ef776 (diff)
downloadgit-5008ba8c5e2bbb87a35a25440f9e920c511de674.zip
git-5008ba8c5e2bbb87a35a25440f9e920c511de674.tar.gz
git-5008ba8c5e2bbb87a35a25440f9e920c511de674.tar.bz2
wildmatch test: use more standard shell style
Change the wildmatch test to use more standard shell style, usually we use "if test" not "if [". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t3070-wildmatch.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/t/t3070-wildmatch.sh b/t/t3070-wildmatch.sh
index 27fa878..4d589d1 100755
--- a/t/t3070-wildmatch.sh
+++ b/t/t3070-wildmatch.sh
@@ -5,7 +5,8 @@ test_description='wildmatch tests'
. ./test-lib.sh
match() {
- if [ $1 = 1 ]; then
+ if test "$1" = 1
+ then
test_expect_success "wildmatch: match '$3' '$4'" "
test-wildmatch wildmatch '$3' '$4'
"
@@ -17,7 +18,8 @@ match() {
}
imatch() {
- if [ $1 = 1 ]; then
+ if test "$1" = 1
+ then
test_expect_success "iwildmatch: match '$2' '$3'" "
test-wildmatch iwildmatch '$2' '$3'
"
@@ -29,7 +31,8 @@ imatch() {
}
pathmatch() {
- if [ $1 = 1 ]; then
+ if test "$1" = 1
+ then
test_expect_success "pathmatch: match '$2' '$3'" "
test-wildmatch pathmatch '$2' '$3'
"