summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-18 10:43:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-18 22:53:45 +0000
commit1460b73e0131212e90aeb55053630dc41ef4835a (patch)
tree81a4342335a54b671b75045f822f571c83602e41
parenta4d31bb032350c2535b9168c33178303522edcca (diff)
downloadpoky-1460b73e0131212e90aeb55053630dc41ef4835a.tar.gz
oeqa/runtime/connman: Drop unused test
This test checks for an IP address and then tests if interface aliases work. We don't run it on any of our automated testing as it only applies for non-qemu. The connectivity test is unrealted to connman and pretty pointless as it depends on ssh being working, so networking is probably ok. The alias interface test is unrelated to commman and a general networking test but seems out of place. The code uses obsolete ifconfig calls and overall, the value of the test we're never using seems low. Delete it. (From OE-Core rev: 5e40277d1ee9df8dbc612a39b575f9a50806cd62) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/runtime/cases/ethernet_ip_connman.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ethernet_ip_connman.py b/meta/lib/oeqa/runtime/cases/ethernet_ip_connman.py
index eac8f2d082..4e671ec0cc 100644
--- a/meta/lib/oeqa/runtime/cases/ethernet_ip_connman.py
+++ b/meta/lib/oeqa/runtime/cases/ethernet_ip_connman.py
@@ -9,24 +9,6 @@ from oeqa.core.decorator.data import skipIfQemu
9 9
10class Ethernet_Test(OERuntimeTestCase): 10class Ethernet_Test(OERuntimeTestCase):
11 11
12 def set_ip(self, x):
13 x = x.split(".")
14 sample_host_address = '150'
15 x[3] = sample_host_address
16 x = '.'.join(x)
17 return x
18
19 @skipIfQemu()
20 @OETestDepends(['ssh.SSHTest.test_ssh'])
21 def test_set_virtual_ip(self):
22 (status, output) = self.target.run("ifconfig eth0 | grep 'inet ' | awk '{print $2}'")
23 self.assertEqual(status, 0, msg='Failed to get ip address. Make sure you have an ethernet connection on your device, output: %s' % output)
24 original_ip = output
25 virtual_ip = self.set_ip(original_ip)
26
27 (status, output) = self.target.run("ifconfig eth0:1 %s netmask 255.255.255.0 && sleep 2 && ping -c 5 %s && ifconfig eth0:1 down" % (virtual_ip,virtual_ip))
28 self.assertEqual(status, 0, msg='Failed to create virtual ip address, output: %s' % output)
29
30 @skipIfQemu() 12 @skipIfQemu()
31 @OETestDepends(['ethernet_ip_connman.Ethernet_Test.test_set_virtual_ip']) 13 @OETestDepends(['ethernet_ip_connman.Ethernet_Test.test_set_virtual_ip'])
32 def test_get_ip_from_dhcp(self): 14 def test_get_ip_from_dhcp(self):
@@ -39,4 +21,4 @@ class Ethernet_Test(OERuntimeTestCase):
39 default_gateway = output 21 default_gateway = output
40 22
41 (status, output) = self.target.run("connmanctl config %s --ipv4 dhcp && sleep 2 && ping -c 5 %s" % (wired_interfaces,default_gateway)) 23 (status, output) = self.target.run("connmanctl config %s --ipv4 dhcp && sleep 2 && ping -c 5 %s" % (wired_interfaces,default_gateway))
42 self.assertEqual(status, 0, msg='Failed to get dynamic IP address via DHCP in connmand, output: %s' % output) \ No newline at end of file 24 self.assertEqual(status, 0, msg='Failed to get dynamic IP address via DHCP in connmand, output: %s' % output)