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

Use the helper to simplify the test.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 6e04f8f21f)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Peter Korsgaard
2026-06-18 14:48:18 +02:00
committed by Thomas Perale
parent 7444fe0980
commit 33866bc42c

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")