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 | 7c14cfe10d4dcb556d03417fca0f0cb0a84ed088 (patch) | |
tree | 5ff4243cd0f35a59bda2b6953c5f277a44264385 /mail/src | |
parent | 4ac9aef0b101975d70d3c33e30c6f01877c1bf2d (diff) |
[debug] add some more debug info to the regressions script
Diffstat (limited to 'mail/src')
-rwxr-xr-x | mail/src/leap/mail/imap/tests/regressions | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/src/leap/mail/imap/tests/regressions b/mail/src/leap/mail/imap/tests/regressions index efe3f467..475c893e 100755 --- a/mail/src/leap/mail/imap/tests/regressions +++ b/mail/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): |