mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
debug mode
This commit is contained in:
+2
-2
@@ -164,10 +164,10 @@ class BaseTest(object):
|
||||
self.run()
|
||||
self.check()
|
||||
except Exception as exc:
|
||||
if self.debugOutput:
|
||||
print(f"API log:\n{self.debug_output()}")
|
||||
raise exc
|
||||
finally:
|
||||
if self.debugOutput:
|
||||
print(f"API log:\n{self.debug_output()}")
|
||||
self.teardown()
|
||||
|
||||
def prepare_remove_all(self):
|
||||
|
||||
@@ -155,6 +155,7 @@ def run(include_long_tests=False, capture_results=False, tests=None, filters=Non
|
||||
traceback.print_exception(typ, val, tb, file=orig_stdout)
|
||||
else:
|
||||
orig_stdout.write(colored("\b\b\b\bOK", color="green", attrs=["bold"]) + f" {duration}\n")
|
||||
orig_stdout.write(testout.get_contents())
|
||||
|
||||
t.shutdown()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user