[PATCH] test-lib-functions.sh: fix the second argument to some helper functions
From: Elia Pinto <hidden>
Date: 2016-06-15 23:04:27
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Elia Pinto <hidden>
Date: 2016-06-15 23:04:27
Subsystem:
the rest · Maintainer:
Linus Torvalds
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 <redacted> --- 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 0698ce7..8f8858a 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh@@ -478,7 +478,7 @@ test_external_without_stderr () { test_path_is_file () { if ! test -f "$1" then - echo "File $1 doesn't exist. $*" + echo "File $1 doesn't exist. $2" false fi }
@@ -486,7 +486,7 @@ test_path_is_file () { test_path_is_dir () { if ! test -d "$1" then - echo "Directory $1 doesn't exist. $*" + echo "Directory $1 doesn't exist. $2" false fi }
--
2.1.0