From 3447aae32bd04cd20c10be2c35de475eee56ae03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Tue, 12 Jun 2012 23:51:47 +0000 Subject: [PATCH] Cleaned up the Boost Build testing framework implementation a bit. [SVN r78913] --- v2/test/BoostBuild.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v2/test/BoostBuild.py b/v2/test/BoostBuild.py index 1a0be85bf..d005e5f79 100644 --- a/v2/test/BoostBuild.py +++ b/v2/test/BoostBuild.py @@ -573,7 +573,7 @@ class Tester(TestCmd.TestCmd): else: return result - def fail_test(self, condition, dump_stdio=True, *args): + def fail_test(self, condition, dump_stdio=True, dump_stack=True): if not condition: return @@ -598,7 +598,8 @@ class Tester(TestCmd.TestCmd): print "The failed command was:" print ' '.join(self.last_program_invocation) - annotate_stack_trace() + if dump_stack: + annotate_stack_trace() sys.exit(1) # A number of methods below check expectations with actual difference