@matheusbsbs / matheus-bagliano / commits / 7d79cb6ad5
Fork 0

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>

Torsten Bögershausen committed Dec 9, 2010 at 20:53 UTC 7d79cb6ad5ef3061c8b5b25ff3f2d779b02ec472
1 file changed +1 -3
t/t9143-git-svn-gc.sh
+1 -3
@@ -37,13 +37,11 @@ test_expect_success 'git svn gc runs' 'git svn gc'
37
38 test_expect_success 'git svn index removed' '! test -f .git/svn/refs/remotes/git-svn/index'
39
40 -if perl -MCompress::Zlib -e 0 2>/dev/null
40 +if test -r .git/svn/refs/remotes/git-svn/unhandled.log.gz
41 then
42 test_expect_success 'git svn gc produces a valid gzip file' '
43 gunzip .git/svn/refs/remotes/git-svn/unhandled.log.gz
44 '
45 -else
46 - say "# Perl Compress::Zlib unavailable, skipping gunzip test"
45 fi
46
47 test_expect_success 'git svn gc does not change unhandled.log files' '