Adding patch from upstream to fix udev tests with dummy interfaces, thanks to Olivier Gayot <olivier.gayot@canonical.com> (Closes: #1057530).
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
a8f39c03aa
commit
b1099ce148
2 changed files with 21 additions and 0 deletions
1
debian/patches/series
vendored
Normal file
1
debian/patches/series
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
upstream/0001-test-dummy-interfaces.patch
|
20
debian/patches/upstream/0001-test-dummy-interfaces.patch
vendored
Normal file
20
debian/patches/upstream/0001-test-dummy-interfaces.patch
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
Author: Martin Belanger <martin.belanger@dell.com>
|
||||
Description: test: Fix test-udev with dummy interfaces
|
||||
https://github.com/linux-nvme/nvme-stas/issues/407
|
||||
https://github.com/linux-nvme/nvme-stas/commit/371c1e875a9a660adca241265e4cd460ee7e5e5c
|
||||
|
||||
diff -Naurp nvme-stas.orig/test/test-udev.py nvme-stas/test/test-udev.py
|
||||
--- nvme-stas.orig/test/test-udev.py
|
||||
+++ nvme-stas/test/test-udev.py
|
||||
@@ -295,6 +295,11 @@ class Test(unittest.TestCase):
|
||||
def test__cid_matches_tid(self):
|
||||
ifaces = iputil.net_if_addrs()
|
||||
for ifname, addrs in self.ifaces.items():
|
||||
+ # <ifaces> contains a subset of the interfaces found in <self.ifaces>.
|
||||
+ # So, let's make sure that we only test with the interfaces found in both.
|
||||
+ if ifname not in ifaces:
|
||||
+ continue
|
||||
+
|
||||
##############################################
|
||||
# IPV4
|
||||
|
Loading…
Add table
Reference in a new issue