support/testing: test_connman.py: use assertRunNotOk()

Use the helper to simplify the test.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Peter Korsgaard
2026-06-18 14:47:57 +02:00
parent 830e0f49bb
commit 2889d0f052

View File

@@ -47,8 +47,7 @@ class TestConnMan(infra.basetest.BRTest):
# If we try to ping again the qemu gateway,
# it should now fail.
_, ret = self.emulator.run(ping_cmd)
self.assertNotEqual(ret, 0)
self.assertRunNotOk(ping_cmd)
# We ask connman to re-enable Ethernet.
self.assertRunOk("connmanctl enable ethernet")