From 2889d0f05277cf22fe10268026aa2f551739e2a9 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 18 Jun 2026 14:47:57 +0200 Subject: [PATCH] support/testing: test_connman.py: use assertRunNotOk() Use the helper to simplify the test. Signed-off-by: Peter Korsgaard --- support/testing/tests/package/test_connman.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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")