mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
support/testing: test_which.py: use assertRunNotOk()
Use the helper to simplify the test.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 6f39a9ba29)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
44001e3e87
commit
3077be13c5
@@ -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