Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
test-lib-functions.sh: fix the second argument to some helper functions
author
Elia Pinto
<gitter.spiros@gmail.com>
Thu, 16 Apr 2015 14:12:07 +0000
(07:12 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 16 Apr 2015 20:31:35 +0000
(13:31 -0700)
The second argument to test_path_is_file and test_path_is_dir
must be $2 and not $*, which instead would repeat the file
name in the error message.
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Reviewed-by: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
12a29b1
)
diff --git
a/t/test-lib-functions.sh
b/t/test-lib-functions.sh
index 7b3b4bef3019d7fd81648073419506ac017bd2e5..e8981b116fee2028d54f3ae375eb395f4e1d7272 100644
(file)
--- a/
t/test-lib-functions.sh
+++ b/
t/test-lib-functions.sh
@@
-383,7
+383,7
@@
test_external_without_stderr () {
test_path_is_file () {
if ! [ -f "$1" ]
then
- echo "File $1 doesn't exist. $
*
"
+ echo "File $1 doesn't exist. $
2
"
false
fi
}
@@
-391,7
+391,7
@@
test_path_is_file () {
test_path_is_dir () {
if ! [ -d "$1" ]
then
- echo "Directory $1 doesn't exist. $
*
"
+ echo "Directory $1 doesn't exist. $
2
"
false
fi
}