mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
support/testing: test_connman.py: use assertRunNotOk()
Use the helper to simplify the test.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 2889d0f052)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
2500d8534f
commit
76c288661d
@@ -47,8 +47,7 @@ class TestConnMan(infra.basetest.BRTest):
|
|||||||
|
|
||||||
# If we try to ping again the qemu gateway,
|
# If we try to ping again the qemu gateway,
|
||||||
# it should now fail.
|
# it should now fail.
|
||||||
_, ret = self.emulator.run(ping_cmd)
|
self.assertRunNotOk(ping_cmd)
|
||||||
self.assertNotEqual(ret, 0)
|
|
||||||
|
|
||||||
# We ask connman to re-enable Ethernet.
|
# We ask connman to re-enable Ethernet.
|
||||||
self.assertRunOk("connmanctl enable ethernet")
|
self.assertRunOk("connmanctl enable ethernet")
|
||||||
|
|||||||
Reference in New Issue
Block a user