mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
support/testing: test_which.py: use assertRunNotOk()
Use the helper to simplify the test. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
@@ -33,8 +33,7 @@ class TestWhich(infra.basetest.BRTest):
|
||||
|
||||
# We check "which" returns an error when the program is not
|
||||
# found.
|
||||
_, ret = self.emulator.run(f"which {alias_name}")
|
||||
self.assertNotEqual(ret, 0)
|
||||
self.assertRunNotOk(f"which {alias_name}")
|
||||
|
||||
# We define a shell alias.
|
||||
alias_cmd = "/bin/true"
|
||||
|
||||
Reference in New Issue
Block a user