diff options
author | 2025-01-07 14:55:21 +0100 | |
---|---|---|
committer | 2025-01-07 14:58:35 +0100 | |
commit | afb42b3ee85b689df5e4fd5f1cd4c9b891434874 (patch) | |
tree | 46c57e305d655ab5e60c62ca947f18ff83ae0723 /net-mail | |
parent | net-mail/mailutils: add 3.18 (diff) | |
download | gentoo-afb42b3ee85b689df5e4fd5f1cd4c9b891434874.tar.gz gentoo-afb42b3ee85b689df5e4fd5f1cd4c9b891434874.tar.bz2 gentoo-afb42b3ee85b689df5e4fd5f1cd4c9b891434874.zip |
net-mail/mailutils: Skip failing tests
A few tests in the mail testsuite expect mbox pattern mailboxes and fail
when default mailbox pattern is maildir which is the Gentoo default.
Skip them
Closes: https://bugs.gentoo.org/935394
Signed-off-by: Eray Aslan <eras@gentoo.org>
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/mailutils/files/mailutils-skip-mbox-tests.patch | 60 | ||||
-rw-r--r-- | net-mail/mailutils/mailutils-3.18.ebuild | 1 |
2 files changed, 61 insertions, 0 deletions
diff --git a/net-mail/mailutils/files/mailutils-skip-mbox-tests.patch b/net-mail/mailutils/files/mailutils-skip-mbox-tests.patch new file mode 100644 index 000000000000..1443e66ecce1 --- /dev/null +++ b/net-mail/mailutils/files/mailutils-skip-mbox-tests.patch @@ -0,0 +1,60 @@ +diff --git a/mail/testsuite/mail/Followup.exp b/mail/testsuite/mail/Followup.exp +index c9f9d11..a7927e9 100644 +--- a/mail/testsuite/mail/Followup.exp ++++ b/mail/testsuite/mail/Followup.exp +@@ -17,7 +17,9 @@ + + mail_version + +-if ![mu_check_capability ENABLE_SENDMAIL] { ++if { [mu_check_capability SCHEME] == "maildir" } { ++ unsupported "Does not work when default mailbox type is maildir" ++} elseif ![mu_check_capability ENABLE_SENDMAIL] { + unsupported "Support for sendmail not compiled in" + } else { + mail_start "--file=%teaparty.mbox" \ +diff --git a/mail/testsuite/mail/Reply.exp b/mail/testsuite/mail/Reply.exp +index c492aee..543a857 100644 +--- a/mail/testsuite/mail/Reply.exp ++++ b/mail/testsuite/mail/Reply.exp +@@ -17,7 +17,9 @@ + + mail_version + +-if ![mu_check_capability ENABLE_SENDMAIL] { ++if { [mu_check_capability SCHEME] == "maildir" } { ++ unsupported "Does not work when default mailbox type is maildir" ++} elseif ![mu_check_capability ENABLE_SENDMAIL] { + unsupported "Support for sendmail not compiled in" + } else { + mail_start "--file=%teaparty.mbox" \ +diff --git a/mail/testsuite/mail/followup.exp b/mail/testsuite/mail/followup.exp +index ca15317..ce042b5 100644 +--- a/mail/testsuite/mail/followup.exp ++++ b/mail/testsuite/mail/followup.exp +@@ -17,7 +17,9 @@ + + mail_version + +-if ![mu_check_capability ENABLE_SENDMAIL] { ++if { [mu_check_capability SCHEME] == "maildir" } { ++ unsupported "Does not work when default mailbox type is maildir" ++} elseif ![mu_check_capability ENABLE_SENDMAIL] { + unsupported "Support for sendmail not compiled in" + } else { + mail_start "--file=%teaparty.mbox" \ +diff --git a/mail/testsuite/mail/reply.exp b/mail/testsuite/mail/reply.exp +index 8d66e99..7b178b3 100644 +--- a/mail/testsuite/mail/reply.exp ++++ b/mail/testsuite/mail/reply.exp +@@ -17,7 +17,9 @@ + + mail_version + +-if ![mu_check_capability ENABLE_SENDMAIL] { ++if { [mu_check_capability SCHEME] == "maildir" } { ++ unsupported "Does not work when default mailbox type is maildir" ++} elseif ![mu_check_capability ENABLE_SENDMAIL] { + unsupported "Support for sendmail not compiled in" + } else { + mail_start "--file=%teaparty.mbox" \ diff --git a/net-mail/mailutils/mailutils-3.18.ebuild b/net-mail/mailutils/mailutils-3.18.ebuild index 2e1a21f4002f..3f9ac446c933 100644 --- a/net-mail/mailutils/mailutils-3.18.ebuild +++ b/net-mail/mailutils/mailutils-3.18.ebuild @@ -63,6 +63,7 @@ REQUIRED_USE=" DOCS=( ABOUT-NLS AUTHORS COPYING COPYING.LESSER ChangeLog INSTALL NEWS README THANKS TODO ) PATCHES=( "${FILESDIR}"/${PN}-3.5-add-include.patch + "${FILESDIR}"/${PN}-skip-mbox-tests.patch ) pkg_setup() { |