|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55220 - trunk/tools/build/v2/test
From: ghost_at_[hidden]
Date: 2009-07-30 14:43:55
Author: vladimir_prus
Date: 2009-07-28 03:11:09 EDT (Tue, 28 Jul 2009)
New Revision: 55220
URL: http://svn.boost.org/trac/boost/changeset/55220
Log:
Improve reporting of failed test due to unexpected changes.
Text files modified:
trunk/tools/build/v2/test/BoostBuild.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Modified: trunk/tools/build/v2/test/BoostBuild.py
==============================================================================
--- trunk/tools/build/v2/test/BoostBuild.py (original)
+++ trunk/tools/build/v2/test/BoostBuild.py 2009-07-28 03:11:09 EDT (Tue, 28 Jul 2009)
@@ -667,9 +667,10 @@
self.ignore('*/gmon.out')
if not self.unexpected_difference.empty():
- print 'FAILED'
- print '------- The following changes were unexpected -------'
- self.unexpected_difference.pprint()
+ annotation('failure', 'Unexpected changes found')
+ output = StringIO.StringIO()
+ self.unexpected_difference.pprint(output)
+ annotation("unexpected changes", output.getvalue())
self.fail_test(1)
def __expect_line(self, content, expected, expected_to_exist):
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk