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.