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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user