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:
Peter Korsgaard
2026-06-18 14:48:12 +02:00
committed by Thomas Perale
parent e4c7462766
commit e9b1a3c0d5

View File

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