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