Mercurial > hg
diff tests/dummysmtpd.py @ 50729:5644f6286618 stable
tests: show test-patchbomb-tls.t smtp server log
Improve test coverage by exposing what the smtp server actually receives.
Make dummystmtpd redirect stderr to a log file.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 23 Mar 2023 16:48:44 +0100 |
parents | 6000f5b25c9b |
children | cfb6ca77e6bc |
line wrap: on
line diff
--- a/tests/dummysmtpd.py Wed Jun 28 01:31:10 2023 +0200 +++ b/tests/dummysmtpd.py Thu Mar 23 16:48:44 2023 +0100 @@ -93,6 +93,7 @@ op.add_option('--pid-file', metavar='FILE') op.add_option('--tls', choices=['none', 'smtps'], default='none') op.add_option('--certificate', metavar='FILE') + op.add_option('--logfile', metavar='FILE') opts, args = op.parse_args() if opts.tls == 'smtps' and not opts.certificate: @@ -113,6 +114,7 @@ runfn=run, runargs=[pycompat.sysexecutable, pycompat.fsencode(__file__)] + pycompat.sysargv[1:], + logfile=opts.logfile, )