From afc5af3f00def8529d61614c73b2addc14599bc3 Mon Sep 17 00:00:00 2001 From: cypherpunks Date: Thu, 17 Dec 2015 17:31:41 +0100 Subject: [PATCH] Log the backtrace when the backtrace test fails --- src/test/bt_test.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/test/bt_test.py b/src/test/bt_test.py index e694361703..dab02d7699 100755 --- a/src/test/bt_test.py +++ b/src/test/bt_test.py @@ -15,6 +15,7 @@ OK """ +from __future__ import print_function import sys @@ -37,6 +38,8 @@ for I in range(len(LINES)): if matches(LINES[I:], FUNCNAMES): print("OK") sys.exit(0) -else: - print("BAD") - sys.exit(1) + +for l in LINES: + print("{}".format(l), end="") + +sys.exit(1)