filter-repo: add a test just to get line coverage of an unusual error

Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
Elijah Newren 2019-03-15 06:27:41 -07:00
parent cd9ea5af9b
commit 365afadfd2

View File

@ -151,4 +151,16 @@ test_expect_success 'erroneous.py' '
)
'
test_expect_success 'other error cases' '
GIT_CEILING_DIRECTORIES=$(pwd) &&
export GIT_CEILING_DIRECTORIES &&
(
mkdir other &&
cd other &&
! python -c "import git_filter_repo as fr; fr.GitUtils.get_commit_count(\".\", [\"HEAD\"])" 2>err &&
test_i18ngrep ". does not appear to be a valid git repository" err
)
'
test_done