Browse Source

Log the backtrace when the backtrace test fails

cypherpunks 8 years ago
parent
commit
afc5af3f00
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/test/bt_test.py

+ 6 - 3
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)