Skip to content

Commit 7d79cb6

Browse files
tboegiEric Wong
authored andcommitted
t9143: do not fail when unhandled.log.gz is not created
Do not depend on internal implementation details of svn, which right now uses perl to create a .gz file. So this test case will even work in the future, when svn changes its implementation. Signed-off-by: Torsten Bögershausen <tboegi@web.de> Acked-by: Eric Wong <normalperson@yhbt.net>
1 parent 6abd933 commit 7d79cb6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

t/t9143-git-svn-gc.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,11 @@ test_expect_success 'git svn gc runs' 'git svn gc'
3737

3838
test_expect_success 'git svn index removed' '! test -f .git/svn/refs/remotes/git-svn/index'
3939

40-
if perl -MCompress::Zlib -e 0 2>/dev/null
40+
if test -r .git/svn/refs/remotes/git-svn/unhandled.log.gz
4141
then
4242
test_expect_success 'git svn gc produces a valid gzip file' '
4343
gunzip .git/svn/refs/remotes/git-svn/unhandled.log.gz
4444
'
45-
else
46-
say "# Perl Compress::Zlib unavailable, skipping gunzip test"
4745
fi
4846

4947
test_expect_success 'git svn gc does not change unhandled.log files' '

0 commit comments

Comments
 (0)