Mercurial > ~astiob > upreckon > hgweb
comparison 2.00/files.py @ 23:c1f52b5d80d6
Compatibility and bug fixes
-1 command line option added (currently only detects the presence of test groups).
The ansname configuration variable is now (again) optional when output validators are used.
Bug fix: path realization only looked at paths beginning with tests/.
Bug fix: non-reiterable values of the tests configuration variable are now handled correctly.
Bug fix: an exceptions was raised if a problem had no test cases.
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Wed, 22 Sep 2010 23:34:51 +0000 |
parents | ec6f1a132109 |
children | fe1463e7e24d |
comparison
equal
deleted
inserted
replaced
22:f07b7a431ea6 | 23:c1f52b5d80d6 |
---|---|
194 for archive in archives: | 194 for archive in archives: |
195 path = os.path.join(root, archive) | 195 path = os.path.join(root, archive) |
196 if os.path.exists(path): | 196 if os.path.exists(path): |
197 if self.realize_path_archive(open_archive(path), '', virtpath, path): | 197 if self.realize_path_archive(open_archive(path), '', virtpath, path): |
198 return True | 198 return True |
199 elif self.realize_path(root, virtpath[1:], allow_root, hastests): | 199 if self.realize_path(root, virtpath[1:], allow_root, hastests): |
200 return True | 200 return True |
201 else: | 201 else: |
202 if not hastests: | 202 if not hastests: |
203 path = os.path.join(root, 'tests', virtpath[0]) | 203 path = os.path.join(root, 'tests', virtpath[0]) |
204 if os.path.exists(path): | 204 if os.path.exists(path): |