From 028a48ecdb8e4cdf538ea52ded97dd9f5269b6c3 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 6 Mar 2003 14:57:26 +0000 Subject: [PATCH] improve error reports [SVN r17741] --- test/BoostBuild.py | 4 +++- v2/test/BoostBuild.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/BoostBuild.py b/test/BoostBuild.py index 659d53fa9..bda22c7dd 100644 --- a/test/BoostBuild.py +++ b/test/BoostBuild.py @@ -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) diff --git a/v2/test/BoostBuild.py b/v2/test/BoostBuild.py index 659d53fa9..bda22c7dd 100644 --- a/v2/test/BoostBuild.py +++ b/v2/test/BoostBuild.py @@ -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)