Skip to content

Commit de248e9

Browse files
devzero2000gitster
authored andcommitted
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 <[email protected]> Reviewed-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 12a29b1 commit de248e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/test-lib-functions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,15 +383,15 @@ test_external_without_stderr () {
383383
test_path_is_file () {
384384
if ! [ -f "$1" ]
385385
then
386-
echo "File $1 doesn't exist. $*"
386+
echo "File $1 doesn't exist. $2"
387387
false
388388
fi
389389
}
390390

391391
test_path_is_dir () {
392392
if ! [ -d "$1" ]
393393
then
394-
echo "Directory $1 doesn't exist. $*"
394+
echo "Directory $1 doesn't exist. $2"
395395
false
396396
fi
397397
}

0 commit comments

Comments
 (0)