mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -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")
|
self.assertRunOk("lsof")
|
||||||
|
|
||||||
# Check lsof fails if requested file is not opened
|
# Check lsof fails if requested file is not opened
|
||||||
_, exit_code = self.emulator.run("lsof {}".format(test_file))
|
self.assertRunNotOk("lsof {}".format(test_file))
|
||||||
self.assertNotEqual(exit_code, 0)
|
|
||||||
|
|
||||||
# Open the test file from the shell on descriptor 10
|
# Open the test file from the shell on descriptor 10
|
||||||
self.assertRunOk("exec 10> {}".format(test_file))
|
self.assertRunOk("exec 10> {}".format(test_file))
|
||||||
|
|||||||
Reference in New Issue
Block a user