support/testing: test_usbip.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:48:18 +02:00
parent 59d15f8ada
commit 6e04f8f21f

View File

@@ -56,8 +56,7 @@ class TestUsbIp(infra.basetest.BRTest):
# The daemon is not running yet. Listing remote devices is
# expected to fail.
_, ret = self.emulator.run("usbip list --remote=127.0.0.1")
self.assertNotEqual(ret, 0)
self.assertRunNotOk("usbip list --remote=127.0.0.1")
# We start the USBIP daemon.
self.assertRunOk("usbipd -D")