We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 346cdd3 commit 907578fCopy full SHA for 907578f
tests/smoke_tests/monitors_test/mysql_test.py
@@ -48,7 +48,11 @@ def mysql_client():
48
# see: https://serverfault.com/a/872576
49
os.system("chown -R mysql:mysql /var/lib/mysql /var/run/mysqld")
50
51
- os.system("service mysql start")
+ exit_code = os.system("service mysql start")
52
+
53
+ # On failure include service logs for ease of debugging
54
+ if exit_code != 0:
55
+ os.system("cat /var/log/mysql/mysql.log || true")
56
57
os.system("mysql < /init.sql")
58
0 commit comments