support/testing: test_mtools.py: use assertRunNotOk()

Use the helper to simplify the test.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit ae1ff2d8dc)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Peter Korsgaard
2026-06-18 14:48:10 +02:00
committed by Thomas Perale
parent 6e9c12ed79
commit e530e03d5d

View File

@@ -29,8 +29,7 @@ class TestMtools(infra.basetest.BRTest):
# Any Mtools command is expected to fail on an unformatted
# partition.
cmd = f"minfo {mtools_opts} ::"
_, exit_code = self.emulator.run(cmd)
self.assertNotEqual(exit_code, 0)
self.assertRunNotOk(cmd)
# Now, let's format the partition file to FAT
self.assertRunOk(f"mformat {mtools_opts} ::")