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>
Elia Pinto committed
Apr 16, 2015 at 07:12 UTC
de248e92c18136a733587949b7d95e7b9c98eb0e
1 file changed
+2
-2
t/test-lib-functions.sh
+2
-2
@@ -383,7 +383,7 @@ test_external_without_stderr () {
383
test_path_is_file () {
384
if ! [ -f "$1" ]
385
then
386
- echo "File $1 doesn't exist. $*"
386
+ echo "File $1 doesn't exist. $2"
387
false
388
fi
389
}
@@ -391,7 +391,7 @@ test_path_is_file () {
391
test_path_is_dir () {
392
if ! [ -d "$1" ]
393
then
394
- echo "Directory $1 doesn't exist. $*"
394
+ echo "Directory $1 doesn't exist. $2"
395
false
396
fi
397
}