[tor-commits] [tor/master] Log the backtrace when the backtrace test fails

nickm at torproject.org nickm at torproject.org
Fri Dec 18 18:10:19 UTC 2015


commit afc5af3f00def8529d61614c73b2addc14599bc3
Author: cypherpunks <cypherpunks at 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)





More information about the tor-commits mailing list