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

Cleaned up the Boost Build testing framework implementation a bit.

[SVN r78913]
This commit is contained in:
Jurko Gospodnetić
2012-06-12 23:51:47 +00:00
parent 4a0e96a07a
commit 3447aae32b

View File

@@ -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