From 0853612155125494f79f66f410884a50ef2fe606 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 18 Jun 2026 14:48:09 +0200 Subject: [PATCH] support/testing: test_mariadb.py: use assertRunNotOk() Use the helper to simplify the test. Signed-off-by: Peter Korsgaard --- support/testing/tests/package/test_mariadb.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/support/testing/tests/package/test_mariadb.py b/support/testing/tests/package/test_mariadb.py index 67ae61c3e1..9ffe6aa3b3 100644 --- a/support/testing/tests/package/test_mariadb.py +++ b/support/testing/tests/package/test_mariadb.py @@ -179,8 +179,7 @@ class TestMariaDB(infra.basetest.BRTest): self.assertRunOk("/etc/init.d/S97mysqld stop") # Check the server is stopped. - _, exit_code = self.emulator.run("mariadb-admin ping") - self.assertNotEqual(exit_code, 0) + self.assertRunNotOk("mariadb-admin ping") # Restart the server. self.assertRunOk("/etc/init.d/S97mysqld start")