mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
support/testing: test_lsof.py: use assertRunNotOk()
Use the helper to simplify the test. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
@@ -28,8 +28,7 @@ class TestLsof(infra.basetest.BRTest):
|
||||
self.assertRunOk("lsof")
|
||||
|
||||
# Check lsof fails if requested file is not opened
|
||||
_, exit_code = self.emulator.run("lsof {}".format(test_file))
|
||||
self.assertNotEqual(exit_code, 0)
|
||||
self.assertRunNotOk("lsof {}".format(test_file))
|
||||
|
||||
# Open the test file from the shell on descriptor 10
|
||||
self.assertRunOk("exec 10> {}".format(test_file))
|
||||
|
||||
Reference in New Issue
Block a user