Fix mysqlmon_failover_auto and mysqlmon_failover_manual
The tests now reset the replication state using queries and switchover instead of calling fix_replication(). The results are checked so these tests now test switchover as well. Also, reduce printing when verbose is on for any test using the get_output()-function in fail_switch_rejoin_common.cpp.
This commit is contained in:
@ -18,11 +18,17 @@ void get_output(TestConnections& test)
|
||||
test.tprintf("%s", output);
|
||||
free(output);
|
||||
|
||||
test.tprintf("MaxScale output:");
|
||||
if (test.verbose)
|
||||
{
|
||||
test.tprintf("MaxScale output:");
|
||||
}
|
||||
output = test.maxscales->ssh_node_output(0, "cat /var/log/maxscale/maxscale.log && "
|
||||
"sudo truncate -s 0 /var/log/maxscale/maxscale.log",
|
||||
true, &ec);
|
||||
test.tprintf("%s", output);
|
||||
if (test.verbose)
|
||||
{
|
||||
test.tprintf("%s", output);
|
||||
}
|
||||
free(output);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user