Mercurial > hgsubversion
comparison tests/test_rebuildmeta.py @ 892:3bfb7e985c47
svn verify: add a test for corrupt repositories.
This case contains a couple of unlikely (but not impossible) failure
cases that the code previously did not handle. The verifier is updated
to address these, and the output made a bit more consistent.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Wed, 14 Dec 2011 00:07:58 +0100 |
parents | 50c13e01c7e3 |
children | 295a8b48e4e2 |
comparison
equal
deleted
inserted
replaced
889:7a98fbadcae9 | 892:3bfb7e985c47 |
---|---|
99 ) | 99 ) |
100 ) | 100 ) |
101 return m | 101 return m |
102 | 102 |
103 | 103 |
104 skip = set([ | |
105 'project_root_not_repo_root.svndump', | |
106 'corrupt.svndump', | |
107 ]) | |
108 | |
104 attrs = {'_do_case': _do_case, | 109 attrs = {'_do_case': _do_case, |
105 } | 110 } |
106 for case in [f for f in os.listdir(test_util.FIXTURES) if f.endswith('.svndump')]: | 111 for case in [f for f in os.listdir(test_util.FIXTURES) if f.endswith('.svndump')]: |
107 # this fixture results in an empty repository, don't use it | 112 # this fixture results in an empty repository, don't use it |
108 if case == 'project_root_not_repo_root.svndump': | 113 if case in skip: |
109 continue | 114 continue |
110 bname = 'test_' + case[:-len('.svndump')] | 115 bname = 'test_' + case[:-len('.svndump')] |
111 attrs[bname] = buildmethod(case, bname, False, False) | 116 attrs[bname] = buildmethod(case, bname, False, False) |
112 name = bname + '_stupid' | 117 name = bname + '_stupid' |
113 attrs[name] = buildmethod(case, name, True, False) | 118 attrs[name] = buildmethod(case, name, True, False) |