summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2015-04-16 14:12:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-04-16 20:31:35 (GMT)
commitde248e92c18136a733587949b7d95e7b9c98eb0e (patch)
tree1d1baa3113c22bf877699b60cbe77dc7d353fd76 /t/test-lib-functions.sh
parent12a29b1a50d47594eb3a29003e3f1eb540580aaa (diff)
downloadgit-de248e92c18136a733587949b7d95e7b9c98eb0e.zip
git-de248e92c18136a733587949b7d95e7b9c98eb0e.tar.gz
git-de248e92c18136a733587949b7d95e7b9c98eb0e.tar.bz2
test-lib-functions.sh: fix the second argument to some helper functions
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>
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r--t/test-lib-functions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 7b3b4be..e8981b1 100644
--- 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
}