commit: 03ebacb8bc393df7f4d133eef7007445da1d43a0
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 7 06:34:32 2024 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sun Apr 7 06:36:10 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03ebacb8
net-misc/dropbear: xfail one test
One test fails only when run by portage.
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
net-misc/dropbear/dropbear-2024.84.ebuild | 1 +
.../dropbear/files/dropbear-2024.84-test-bg-sleep.patch | 14 ++++++++++++++
2 files changed, 15 insertions(+)
diff --git a/net-misc/dropbear/dropbear-2024.84.ebuild
b/net-misc/dropbear/dropbear-2024.84.ebuild
index 83d23fbcf782..85944fe6b816 100644
--- a/net-misc/dropbear/dropbear-2024.84.ebuild
+++ b/net-misc/dropbear/dropbear-2024.84.ebuild
@@ -65,6 +65,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-2022.82-tests.patch
"${FILESDIR}"/${PN}-2024.84-non-interactive-tests.patch
"${FILESDIR}"/${PN}-2024.84-fix-channels-tests.patch
+ "${FILESDIR}"/${PN}-2024.84-test-bg-sleep.patch
)
set_options() {
diff --git a/net-misc/dropbear/files/dropbear-2024.84-test-bg-sleep.patch
b/net-misc/dropbear/files/dropbear-2024.84-test-bg-sleep.patch
new file mode 100644
index 000000000000..a078eb2e68b6
--- /dev/null
+++ b/net-misc/dropbear/files/dropbear-2024.84-test-bg-sleep.patch
@@ -0,0 +1,14 @@
+One test passes when run with ebuild ... test, but fails when run by portage.
+Mark it as xfail.
+
+--- a/test/test_channels.py
++++ b/test/test_channels.py
+@@ -45,7 +45,7 @@
+ r.check_returncode()
+ assert r.stdout.decode() == dat
+
[email protected]("fd", [1, 2])
[email protected]("fd", [1, pytest.param(2,
marks=pytest.mark.xfail(reason="Fails sometimes"))])
+ def test_bg_sleep(request, fd, dropbear):
+ # https://lists.ucc.asn.au/pipermail/dropbear/2006q1/000362.html
+ # Rob Landley "Is this a bug?" 24 Mar 2006