1 |
commit: 5cdfd69bf4a361442d0ef6325ada851a9edb46de |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 4 09:00:32 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 4 09:06:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cdfd69b |
7 |
|
8 |
net-misc/gns3-gui: backport tests fix |
9 |
|
10 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
11 |
|
12 |
net-misc/gns3-gui/files/gns3-gui-2.2.28-tests.patch | 13 +++++++++++++ |
13 |
net-misc/gns3-gui/gns3-gui-2.2.28.ebuild | 4 ++++ |
14 |
2 files changed, 17 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/gns3-gui/files/gns3-gui-2.2.28-tests.patch b/net-misc/gns3-gui/files/gns3-gui-2.2.28-tests.patch |
17 |
new file mode 100644 |
18 |
index 000000000000..aad72138710e |
19 |
--- /dev/null |
20 |
+++ b/net-misc/gns3-gui/files/gns3-gui-2.2.28-tests.patch |
21 |
@@ -0,0 +1,13 @@ |
22 |
+https://github.com/GNS3/gns3-gui/commit/a5aa9bfb7a9996c3e07f506110d61c5a319a7468 |
23 |
+--- a/tests/test_link.py |
24 |
++++ b/tests/test_link.py |
25 |
+@@ -104,9 +104,6 @@ def test_create_link(devices, project, controller): |
26 |
+ assert link._link_id is not None |
27 |
+ assert not devices[0].ports()[0].isFree() |
28 |
+ |
29 |
+- assert link in devices[0].links() |
30 |
+- assert link in devices[1].links() |
31 |
+- |
32 |
+ assert link.getNodePort(devices[0]) == devices[0].ports()[0] |
33 |
+ assert link.getNodePort(devices[1]) == devices[1].ports()[0] |
34 |
+ |
35 |
|
36 |
diff --git a/net-misc/gns3-gui/gns3-gui-2.2.28.ebuild b/net-misc/gns3-gui/gns3-gui-2.2.28.ebuild |
37 |
index 1c1a934e12ca..14949a3a803a 100644 |
38 |
--- a/net-misc/gns3-gui/gns3-gui-2.2.28.ebuild |
39 |
+++ b/net-misc/gns3-gui/gns3-gui-2.2.28.ebuild |
40 |
@@ -28,6 +28,10 @@ RDEPEND=" |
41 |
|
42 |
distutils_enable_tests pytest |
43 |
|
44 |
+PATCHES=( |
45 |
+ "${FILESDIR}"/${P}-tests.patch |
46 |
+) |
47 |
+ |
48 |
src_prepare() { |
49 |
default |