mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-09 17:03:35 -09:00
support/testing: TestPythonPy3NetworkmanagerGoi: check we actually get data
The sample script would've passed even if the connections list was
empty. Check that there is at least one connection, and that the
sample script can read loopback device information.
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
(cherry picked from commit f38f5bb593)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
8e74f24dd6
commit
6b4daa210f
@@ -24,3 +24,11 @@ for c in connections:
|
||||
print("{}:".format(c.get_id()))
|
||||
c.for_each_setting_value(print_values, None)
|
||||
print("\n")
|
||||
print("found {} defined connections".format(len(connections)))
|
||||
assert len(connections) > 0
|
||||
|
||||
# check that we can find the loopback device ...
|
||||
loopback = client.get_device_by_iface("lo")
|
||||
# ... and read its type and status as expected
|
||||
assert loopback.get_device_type().name == "LOOPBACK"
|
||||
assert loopback.get_state().name == "ACTIVATED"
|
||||
|
||||
Reference in New Issue
Block a user