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:
Peter Korsgaard
2026-06-18 14:48:05 +02:00
committed by Thomas Perale
parent 2016f425e2
commit 93ef3f534b

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.