diff --git a/support/testing/tests/package/test_ddrescue.py b/support/testing/tests/package/test_ddrescue.py index bd34694737..e7e71fefda 100644 --- a/support/testing/tests/package/test_ddrescue.py +++ b/support/testing/tests/package/test_ddrescue.py @@ -70,8 +70,7 @@ class TestDdrescue(infra.basetest.BRTest): # A normal 'dd' is expected to fail with I/O error cmd = f"dd if={dm_dev} of=/dev/null bs=512" - _, exit_code = self.emulator.run(cmd) - self.assertNotEqual(exit_code, 0) + self.assertRunNotOk(cmd) # Where a normal 'dd' fails, 'ddrescue' is expected to succeed self.assertRunOk(f"ddrescue {dm_dev} {ddrescue_img}")