diff options
author | Kali Kaneko <kali@leap.se> | 2015-07-09 12:01:53 -0400 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2015-07-13 11:55:31 -0400 |
commit | e9cae5495b589ac6f6c347db156beac76a5413c6 (patch) | |
tree | bb72c93d51c181b341dbd92e117430d0abdc89bb /src/leap/mail/imap/tests | |
parent | 1810e1b704835257a8e4cba5328df29229e221ee (diff) |
[debug] add some more debug info to the regressions script
Diffstat (limited to 'src/leap/mail/imap/tests')
-rwxr-xr-x | src/leap/mail/imap/tests/regressions | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/leap/mail/imap/tests/regressions b/src/leap/mail/imap/tests/regressions index efe3f46..475c893 100755 --- a/src/leap/mail/imap/tests/regressions +++ b/src/leap/mail/imap/tests/regressions @@ -263,7 +263,7 @@ def cbSelectMbox(result, proto): if result["EXISTS"] != 0: # Flag as deleted, expunge, and do an examine again. - #print "There is mail here, will delete..." + print "There is mail here, will delete..." return cbDeleteAndExpungeTestFolder(proto) else: @@ -276,11 +276,15 @@ def ebSelectMbox(failure, proto, folder): Creates the folder. """ - print failure.getTraceback() + log.err(failure) log.msg("Folder %r does not exist. Creating..." % (folder,)) return proto.create(folder).addCallback(cbAuthentication, proto) +def ebExpunge(failure): + log.err(failure) + + def cbDeleteAndExpungeTestFolder(proto): """ Callback invoked fom cbExamineMbox when the number of messages in the @@ -292,7 +296,9 @@ def cbDeleteAndExpungeTestFolder(proto): ).addCallback( lambda r: proto.expunge() ).addCallback( - cbExpunge, proto) + cbExpunge, proto + ).addErrback( + ebExpunge) def cbExpunge(result, proto): |