mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-27 12:30:34 -09:00
support/testing: test_octave.py: use assertRunNotOk()
Use the helper to simplify the test.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit e5c017f663)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
e4c7462766
commit
e9b1a3c0d5
@@ -51,8 +51,7 @@ class TestOctave(infra.basetest.BRTest):
|
||||
|
||||
# Check octave can fail
|
||||
cmd = self.octave_cmd("assert(false)")
|
||||
_, exit_code = self.emulator.run(cmd)
|
||||
self.assertNotEqual(exit_code, 0)
|
||||
self.assertRunNotOk(cmd)
|
||||
|
||||
# Check string output
|
||||
string = "Hello World"
|
||||
|
||||
Reference in New Issue
Block a user