From 59d15f8ada3e14a056050a0d07b1a7fcc5d35f7b Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 18 Jun 2026 14:48:17 +0200 Subject: [PATCH] support/testing: test_swipl.py: use assertRunNotOk() Use the helper to simplify the test. Signed-off-by: Peter Korsgaard --- support/testing/tests/package/test_swipl.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/support/testing/tests/package/test_swipl.py b/support/testing/tests/package/test_swipl.py index 0f317bb617..4005e02e5b 100644 --- a/support/testing/tests/package/test_swipl.py +++ b/support/testing/tests/package/test_swipl.py @@ -27,8 +27,7 @@ class TestSWIPL(infra.basetest.BRTest): # Check swipl fails when goal is false. cmd = "swipl -g false" - _, exit_code = self.emulator.run(cmd) - self.assertNotEqual(exit_code, 0) + self.assertRunNotOk(cmd) # Test output. string = "Hello Buildroot !"