From d609615f4897bf8c555c105da2057fbeb6ed881f Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 21 Jan 2019 07:12:19 -0800 Subject: tests: explicitly use `test-tool.exe` on Windows In 8abfdf44c882 (tests: explicitly use `git.exe` on Windows, 2018-11-14), we made sure to use the `.exe` file extension when using an absolute path to `git.exe`, to avoid getting confused with a file or directory in the same place that lacks said file extension. For the same reason, we need to handle test-tool.exe the same way. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano diff --git a/t/test-lib.sh b/t/test-lib.sh index e12addc..6bc0aa5 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1007,7 +1007,7 @@ test -d "$GIT_BUILD_DIR"/templates/blt || { error "You haven't built things yet, have you?" } -if ! test -x "$GIT_BUILD_DIR"/t/helper/test-tool +if ! test -x "$GIT_BUILD_DIR"/t/helper/test-tool$X then echo >&2 'You need to build test-tool:' echo >&2 'Run "make t/helper/test-tool" in the source (toplevel) directory' -- cgit v0.10.2-6-g49f6