Mercurial > hg-stable
changeset 50728:8823e4d411ba stable
tests: fix dummysmtpd argument check
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 26 Jun 2023 16:45:13 +0200 |
parents | cfb6ca77e6bc |
children | b3a5af04da35 |
files | tests/dummysmtpd.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/dummysmtpd.py Mon Jun 26 15:51:39 2023 +0200 +++ b/tests/dummysmtpd.py Mon Jun 26 16:45:13 2023 +0200 @@ -99,8 +99,8 @@ op.add_option('--logfile', metavar='FILE') opts, args = op.parse_args() - if opts.tls == 'smtps' and not opts.certificate: - op.error('--certificate must be specified') + if (opts.tls == 'smtps') != bool(opts.certificate): + op.error('--certificate must be specified with --tls=smtps') addr = (opts.address, opts.port)