Mercurial > bitten > bitten-test
changeset 851:802e9b9acb66
Normalized coverage annotation path check to cover Trac resource.id path inconsistencies between versions.
author | osimons |
---|---|
date | Thu, 14 Oct 2010 11:10:13 +0000 |
parents | 351dfe735924 |
children | bd46b7410299 |
files | bitten/report/coverage.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/report/coverage.py +++ b/bitten/report/coverage.py @@ -222,7 +222,8 @@ reports = [] for build in builds: config = BuildConfig.fetch(self.env, build.config) - if not resource.id.startswith('/' + config.path.lstrip('/')): + # Normalize paths and check (Trac version inconsistencies) + if not resource.id.lstrip('/').startswith(config.path.lstrip('/')): continue reports = Report.select(self.env, build=build.id, category='coverage')