Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
wildmatch test: use more standard shell style
author
Ævar Arnfjörð Bjarmason
<avarab@gmail.com>
Tue, 30 Jan 2018 21:21:16 +0000
(21:21 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 30 Jan 2018 22:04:00 +0000
(14:04 -0800)
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>
t/t3070-wildmatch.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
a4a136f
)
diff --git
a/t/t3070-wildmatch.sh
b/t/t3070-wildmatch.sh
index 27fa878f6e7730b9687f06cb7bab1808c2c722bf..4d589d1f9a9f40075194076c135d0b6e0f50127c 100755
(executable)
--- a/
t/t3070-wildmatch.sh
+++ b/
t/t3070-wildmatch.sh
@@
-5,7
+5,8
@@
test_description='wildmatch tests'
. ./test-lib.sh
match() {
. ./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'
"
test_expect_success "wildmatch: match '$3' '$4'" "
test-wildmatch wildmatch '$3' '$4'
"
@@
-17,7
+18,8
@@
match() {
}
imatch() {
}
imatch() {
- if [ $1 = 1 ]; then
+ if test "$1" = 1
+ then
test_expect_success "iwildmatch: match '$2' '$3'" "
test-wildmatch iwildmatch '$2' '$3'
"
test_expect_success "iwildmatch: match '$2' '$3'" "
test-wildmatch iwildmatch '$2' '$3'
"
@@
-29,7
+31,8
@@
imatch() {
}
pathmatch() {
}
pathmatch() {
- if [ $1 = 1 ]; then
+ if test "$1" = 1
+ then
test_expect_success "pathmatch: match '$2' '$3'" "
test-wildmatch pathmatch '$2' '$3'
"
test_expect_success "pathmatch: match '$2' '$3'" "
test-wildmatch pathmatch '$2' '$3'
"