# HG changeset patch # User cmlenz # Date 1123886575 0 # Node ID 07505cab4ba6d24555e73409fac5be7262b00766 # Parent c43b72672dde4d44d7911c44a2e60f06956bc798 Fix unit test for {{{}}} recipe command. diff --git a/bitten/build/pythontools.py b/bitten/build/pythontools.py --- a/bitten/build/pythontools.py +++ b/bitten/build/pythontools.py @@ -100,6 +100,7 @@ modname = match.group(3) cov = int(match.group(2)) if filename.startswith(ctxt.basedir): + filename = filename[len(ctxt.basedir) + 1:] module = xmlio.Element('coverage', file=filename, module=modname, percentage=cov) coverage_path = ctxt.resolve(coverdir, diff --git a/bitten/build/tests/pythontools.py b/bitten/build/tests/pythontools.py --- a/bitten/build/tests/pythontools.py +++ b/bitten/build/tests/pythontools.py @@ -88,9 +88,10 @@ self.results_xml.write('' '' '' - '') + '' + % os.path.join(self.ctxt.basedir, 'bar_test.py')) self.results_xml.close() pythontools.unittest(self.ctxt, self.results_xml.name) type, function, xml = self.ctxt.output.pop()