
18 Dec
2015
18 Dec
'15
6:10 p.m.
commit afc5af3f00def8529d61614c73b2addc14599bc3 Author: cypherpunks <cypherpunks@torproject.org> Date: Thu Dec 17 17:31:41 2015 +0100 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 e694361..dab02d7 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)