support/testing: test_swipl.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:17 +02:00
parent 50ed1540f3
commit 59d15f8ada

View File

@@ -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 !"