mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -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
|
# We check "which" returns an error when the program is not
|
||||||
# found.
|
# found.
|
||||||
_, ret = self.emulator.run(f"which {alias_name}")
|
self.assertRunNotOk(f"which {alias_name}")
|
||||||
self.assertNotEqual(ret, 0)
|
|
||||||
|
|
||||||
# We define a shell alias.
|
# We define a shell alias.
|
||||||
alias_cmd = "/bin/true"
|
alias_cmd = "/bin/true"
|
||||||
|
|||||||
Reference in New Issue
Block a user