From: "Georgy Yakovlev" <gyakovlev@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-ethtool/, dev-python/python-ethtool/files/
Date: Sat, 2 Feb 2019 23:42:35 +0000 (UTC) [thread overview]
Message-ID: <1549150941.d6bffad1ce3873c8ac86c664b90651cfbcfe4d01.gyakovlev@gentoo> (raw)
commit: d6bffad1ce3873c8ac86c664b90651cfbcfe4d01
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 2 23:37:45 2019 +0000
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Sat Feb 2 23:42:21 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6bffad1
dev-python/python-ethtool: add tests
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
.../python-ethtool/files/test-skip-wg-dev.patch | 29 ++++++++++++++++++++++
.../python-ethtool/python-ethtool-0.14.ebuild | 6 +++++
2 files changed, 35 insertions(+)
diff --git a/dev-python/python-ethtool/files/test-skip-wg-dev.patch b/dev-python/python-ethtool/files/test-skip-wg-dev.patch
new file mode 100644
index 00000000000..435a81ae494
--- /dev/null
+++ b/dev-python/python-ethtool/files/test-skip-wg-dev.patch
@@ -0,0 +1,29 @@
+From aa18c4a046ed2b508a87161f886e07c6d3716dd3 Mon Sep 17 00:00:00 2001
+From: Georgy Yakovlev <gyakovlev@gentoo.org>
+Date: Sat, 2 Feb 2019 14:00:52 -0800
+Subject: [PATCH] tests/test_ethtool.py: skip test_get_active_devices for wg
+
+wg is a wireguard interface and this test fails with
+OSError: [Errno 95] Operation not supported
+---
+ tests/test_ethtool.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_ethtool.py b/tests/test_ethtool.py
+index 6162cd3..0ff78b1 100755
+--- a/tests/test_ethtool.py
++++ b/tests/test_ethtool.py
+@@ -254,8 +254,8 @@ class EthtoolTests(unittest.TestCase):
+
+ def test_get_active_devices(self):
+ for devname in ethtool.get_active_devices():
+- # Skip these test on tun devices
+- if devname.startswith('tun'):
++ # Skip these test on tun and wg devices
++ if devname.startswith('tun') or devname.startswith('wg'):
+ continue
+ self._functions_accepting_devnames(devname)
+
+--
+2.20.1
+
diff --git a/dev-python/python-ethtool/python-ethtool-0.14.ebuild b/dev-python/python-ethtool/python-ethtool-0.14.ebuild
index 3fa5a7bf371..508b2ec1fed 100644
--- a/dev-python/python-ethtool/python-ethtool-0.14.ebuild
+++ b/dev-python/python-ethtool/python-ethtool-0.14.ebuild
@@ -21,3 +21,9 @@ KEYWORDS="~amd64"
DEPEND="dev-libs/libnl:3"
RDEPEND="${DEPEND}"
BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}"/test-skip-wg-dev.patch )
+
+python_test() {
+ esetup.py test || die "Tests failed with ${EPYTHON}"
+}
next reply other threads:[~2019-02-02 23:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-02 23:42 Georgy Yakovlev [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-12-27 18:52 [gentoo-commits] repo/gentoo:master commit in: dev-python/python-ethtool/, dev-python/python-ethtool/files/ David Seifert
2016-08-06 20:56 Rafael Martins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1549150941.d6bffad1ce3873c8ac86c664b90651cfbcfe4d01.gyakovlev@gentoo \
--to=gyakovlev@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox