aboutsummaryrefslogtreecommitdiff
path: root/src/test/bt_test.py
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2015-12-17 17:31:41 +0100
committerNick Mathewson <nickm@torproject.org>2015-12-18 13:09:04 -0500
commitafc5af3f00def8529d61614c73b2addc14599bc3 (patch)
treef1e944910ace3b13334d0b603a0bf83279358b41 /src/test/bt_test.py
parent0c5d8d9a4f651d25369c17ac0a194a6928310902 (diff)
downloadtor-afc5af3f00def8529d61614c73b2addc14599bc3.tar.gz
tor-afc5af3f00def8529d61614c73b2addc14599bc3.zip
Log the backtrace when the backtrace test fails
Diffstat (limited to 'src/test/bt_test.py')
-rwxr-xr-xsrc/test/bt_test.py9
1 files 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)