mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Log the backtrace when the backtrace test fails
This commit is contained in:
committed by
Nick Mathewson
parent
0c5d8d9a4f
commit
afc5af3f00
+6
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user