aboutsummaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2005-12-08 21:25:55 +0100
committerJunio C Hamano <junkio@cox.net>2005-12-09 12:51:04 -0800
commit0f737464a6734d917431cf8df14eb04bd9c4cd8d (patch)
tree1ffc80aea4799a71db4811289f99d968cb8f46f2 /t/test-lib.sh
parent2b86976bfd6e42609692d57fffaef72bd985c23a (diff)
downloadgit-0f737464a6734d917431cf8df14eb04bd9c4cd8d.tar.gz
git-0f737464a6734d917431cf8df14eb04bd9c4cd8d.tar.xz
use "git init-db" in tests
This is to catch an error where tests are run without first building what are being tested. Relying on prefixing $PATH with the build directory and expect that the PATH mechanism would find what we just built would silently run an already installed binaries from the PATH. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/test-lib.sh')
-rwxr-xr-xt/test-lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 0539dacc1..3704e5faf 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -190,8 +190,8 @@ test=trash
rm -fr "$test"
mkdir "$test"
cd "$test"
-git-init-db --template=../../templates/blt/ 2>/dev/null ||
-error "cannot run git-init-db"
+git init-db --template=../../templates/blt/ 2>/dev/null ||
+error "cannot run git init-db"
mv .git/hooks .git/hooks-disabled