]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t3008: find test-tool through path lookup
authorJohannes Sixt <j6t@kdbg.org>
Sun, 22 Dec 2019 15:03:53 +0000 (16:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Dec 2019 22:15:01 +0000 (14:15 -0800)
Do not use $GIT_BUILD_DIR without quotes; it may contain spaces and be
split into fields. But it is not necessary to access test-tool with an
absolute path in the first place as it can be found via path lookup.
Remove the explicit path.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3008-ls-files-lazy-init-name-hash.sh

index 64f047332b51cefea37bd5b8b40e863be77dfc77..85f370495876f51691322f3556b944a023ad8388 100755 (executable)
@@ -4,7 +4,7 @@ test_description='Test the lazy init name hash with various folder structures'
 
 . ./test-lib.sh
 
-if test 1 -eq $($GIT_BUILD_DIR/t/helper/test-tool online-cpus)
+if test 1 -eq $(test-tool online-cpus)
 then
        skip_all='skipping lazy-init tests, single cpu'
        test_done