mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
support/testing: test_swipl.py: use assertRunNotOk()
Use the helper to simplify the test.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 59d15f8ada)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
2e5451895d
commit
7444fe0980
@@ -27,8 +27,7 @@ class TestSWIPL(infra.basetest.BRTest):
|
|||||||
|
|
||||||
# Check swipl fails when goal is false.
|
# Check swipl fails when goal is false.
|
||||||
cmd = "swipl -g false"
|
cmd = "swipl -g false"
|
||||||
_, exit_code = self.emulator.run(cmd)
|
self.assertRunNotOk(cmd)
|
||||||
self.assertNotEqual(exit_code, 0)
|
|
||||||
|
|
||||||
# Test output.
|
# Test output.
|
||||||
string = "Hello Buildroot !"
|
string = "Hello Buildroot !"
|
||||||
|
|||||||
Reference in New Issue
Block a user