From cab36bc293e99c54adbc14857098202724210b0f Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 18 Jun 2026 14:48:05 +0200 Subject: [PATCH] support/testing: test_jq.py: use assertRunNotOk() Use the helper to simplify the test. Signed-off-by: Peter Korsgaard --- support/testing/tests/package/test_jq.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/support/testing/tests/package/test_jq.py b/support/testing/tests/package/test_jq.py index 67420abb6b..ffa284ce31 100644 --- a/support/testing/tests/package/test_jq.py +++ b/support/testing/tests/package/test_jq.py @@ -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.