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:
Peter Korsgaard
2026-06-18 14:48:05 +02:00
parent 75ae191b5f
commit cab36bc293

View File

@@ -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.