Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ep/fix-test-lib-functions-report'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 6 May 2015 04:00:35 +0000
(21:00 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 6 May 2015 04:00:36 +0000
(21:00 -0700)
* ep/fix-test-lib-functions-report:
test-lib-functions.sh: fix the second argument to some helper functions
1
2
t/test-lib-functions.sh
patch
|
diff1
|
diff2
|
blob
|
history
raw
|
combined
(merge:
2e1dfd6
de248e9
)
diff --cc
t/test-lib-functions.sh
index 0698ce7908cb958c6e94a8cfa11c1019de692710,e8981b116fee2028d54f3ae375eb395f4e1d7272..8f8858a5f0a4f7a705960cef5b5558064a86ea28
---
1
/
t/test-lib-functions.sh
---
2
/
t/test-lib-functions.sh
+++ b/
t/test-lib-functions.sh
@@@
-476,17
-381,17
+476,17
@@@
test_external_without_stderr ()
# The commands test the existence or non-existence of $1. $2 can be
# given to provide a more precise diagnosis.
test_path_is_file () {
- if !
[ -f "$1" ]
+ if !
test -f "$1"
then
- echo "File $1 doesn't exist. $
*
"
+ echo "File $1 doesn't exist. $
2
"
false
fi
}
test_path_is_dir () {
- if !
[ -d "$1" ]
+ if !
test -d "$1"
then
- echo "Directory $1 doesn't exist. $
*
"
+ echo "Directory $1 doesn't exist. $
2
"
false
fi
}