From de248e92c18136a733587949b7d95e7b9c98eb0e Mon Sep 17 00:00:00 2001 From: Elia Pinto Date: Thu, 16 Apr 2015 07:12:07 -0700 Subject: [PATCH] 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 Reviewed-by: Matthieu Moy Signed-off-by: Junio C Hamano --- t/test-lib-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index 7b3b4bef30..e8981b116f 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 } -- 2.11.4.GIT