mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user