mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
support/testing: test_mariadb.py: use assertRunNotOk()
Use the helper to simplify the test.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 0853612155)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
a7241a9a55
commit
6e9c12ed79
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user