mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
support/testing: test_jq.py: use assertRunNotOk()
Use the helper to simplify the test.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit cab36bc293)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
2016f425e2
commit
93ef3f534b
@@ -34,8 +34,7 @@ class TestJq(infra.basetest.BRTest):
|
||||
|
||||
# Check the execution fails on a non JSON file.
|
||||
cmd = "jq -M '.' broken.json"
|
||||
_, ret = self.emulator.run(cmd)
|
||||
self.assertNotEqual(ret, 0)
|
||||
self.assertRunNotOk(cmd)
|
||||
|
||||
# Check an execution of a simple query. Note that output is a
|
||||
# JSON (quoted) string.
|
||||
|
||||
Reference in New Issue
Block a user