From ae1ff2d8dce7a5e142758faf5fb567c572451ec9 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 18 Jun 2026 14:48:10 +0200 Subject: [PATCH] support/testing: test_mtools.py: use assertRunNotOk() Use the helper to simplify the test. Signed-off-by: Peter Korsgaard --- support/testing/tests/package/test_mtools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/support/testing/tests/package/test_mtools.py b/support/testing/tests/package/test_mtools.py index 23ec08b6d6..8fc8766207 100644 --- a/support/testing/tests/package/test_mtools.py +++ b/support/testing/tests/package/test_mtools.py @@ -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} ::")