mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
galera tests: more informative messages about the number of variables
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
--disable_query_log
|
||||
|
||||
--let $galera_variables_ok = `SELECT COUNT(*) = 50 FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE 'wsrep%'`
|
||||
let $_galera_variables_delta=$galera_variables_delta;
|
||||
if (!$_galera_variables_delta) {
|
||||
--let $galera_variables_delta=0
|
||||
}
|
||||
|
||||
--if (!$galera_variables_ok) {
|
||||
--skip Galera number of variables has changed!
|
||||
--let $galera_variables_expected=`SELECT 50 + $galera_variables_delta`
|
||||
|
||||
--let $galera_variables_count=`SELECT COUNT(*) FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE 'wsrep%'`
|
||||
|
||||
--if ($galera_variables_count != $galera_variables_expected) {
|
||||
--skip Galera number of variables has changed! ($galera_variables_count instead of $galera_variables_expected)
|
||||
}
|
||||
|
||||
--enable_query_log
|
||||
|
@@ -1,9 +1,5 @@
|
||||
--disable_query_log
|
||||
# Now the number of variables for the release and debug versions
|
||||
# of the library is equal to each other...
|
||||
--let $galera_variables_delta=0
|
||||
|
||||
--let $galera_variables_ok = `SELECT COUNT(*) = 51 FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE 'wsrep%'`
|
||||
|
||||
--if (!$galera_variables_ok) {
|
||||
--skip Galera number of variables has changed!
|
||||
}
|
||||
|
||||
--enable_query_log
|
||||
--source include/galera_variables_ok.inc
|
||||
|
Reference in New Issue
Block a user