X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/aa9b1b9d49ec37d28b6f576656170d47618e25b5..4f5a8c722ee88f9be891297353ae26f676bb0213:/t/test-lib.sh diff --git a/t/test-lib.sh b/t/test-lib.sh index 6339c54..b44a590 100755 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -159,11 +159,11 @@ test_create_repo () { repo="$1" mkdir "$repo" cd "$repo" || error "Cannot setup test environment" - git-init-db 2>/dev/null || + git-init-db >&3 2>&4 || error "cannot run git-init-db -- have you installed git-core?" mv .git/hooks .git/hooks-disabled echo "empty start" | - git-commit-tree `git-write-tree` >.git/refs/heads/master 2>/dev/null || + git-commit-tree `git-write-tree` >.git/refs/heads/master 2>&4 || error "cannot run git-commit -- is your git-core funtionning?" cd "$owd" } @@ -193,7 +193,8 @@ test_done () { # Test the binaries we have just built. The tests are kept in # t/ subdirectory and are run in trash subdirectory. PATH=$(pwd)/..:$PATH -export PATH +HOME=$(pwd)/trash +export PATH HOME # Test repository