2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00

improve error reports

[SVN r17741]
This commit is contained in:
Dave Abrahams
2003-03-06 14:57:26 +00:00
parent 6f38457da7
commit 028a48ecdb
2 changed files with 6 additions and 2 deletions

View File

@@ -288,6 +288,7 @@ class Tester(TestCmd.TestCmd):
def fail_test(self, condition, *args):
# If test failed, print the difference
if condition and hasattr(self, 'difference'):
print '-------- all changes caused by last build command ----------'
self.difference.pprint()
TestCmd.TestCmd.fail_test(self, condition, *args)
@@ -388,7 +389,8 @@ class Tester(TestCmd.TestCmd):
self.ignore('*.rsp')
if not self.unexpected_difference.empty():
print "Expected nothing more, but got the following:"
print 'FAILED'
print '------- The following changes were unexpected ------- '
self.unexpected_difference.pprint()
self.fail_test(1)

View File

@@ -288,6 +288,7 @@ class Tester(TestCmd.TestCmd):
def fail_test(self, condition, *args):
# If test failed, print the difference
if condition and hasattr(self, 'difference'):
print '-------- all changes caused by last build command ----------'
self.difference.pprint()
TestCmd.TestCmd.fail_test(self, condition, *args)
@@ -388,7 +389,8 @@ class Tester(TestCmd.TestCmd):
self.ignore('*.rsp')
if not self.unexpected_difference.empty():
print "Expected nothing more, but got the following:"
print 'FAILED'
print '------- The following changes were unexpected ------- '
self.unexpected_difference.pprint()
self.fail_test(1)