diff --git a/support/testing/tests/package/test_connman.py b/support/testing/tests/package/test_connman.py index 6fef95104c..2e53135208 100644 --- a/support/testing/tests/package/test_connman.py +++ b/support/testing/tests/package/test_connman.py @@ -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")