refactored tests (#147)
This commit is contained in:
@ -28,8 +28,8 @@ int main(int argc, char *argv[])
|
||||
sprintf(cmd, "%s/utf64.cnf", test_dir);
|
||||
for (int i = 0; i < Test->repl->N; i++)
|
||||
{
|
||||
Test->repl->copy_to_node(cmd, "./", i);
|
||||
Test->repl->ssh_node(i, true, "cp ./utf64.cnf /etc/my.cnf.d/");
|
||||
Test->repl->copy_to_node_legacy(cmd, (char *) "./", i);
|
||||
Test->repl->ssh_node(i, (char *) "cp ./utf64.cnf /etc/my.cnf.d/", true);
|
||||
}
|
||||
|
||||
Test->repl->start_replication();
|
||||
@ -44,15 +44,15 @@ int main(int argc, char *argv[])
|
||||
Test->set_timeout(120);
|
||||
|
||||
Test->tprintf("Restart Maxscale");
|
||||
Test->restart_maxscale();
|
||||
Test->maxscales->restart_maxscale(0);
|
||||
|
||||
Test->check_maxscale_alive();
|
||||
Test->check_maxscale_alive(0);
|
||||
|
||||
Test->stop_timeout();
|
||||
Test->tprintf("Restore backend configuration\n");
|
||||
for (int i = 0; i < Test->repl->N; i++)
|
||||
{
|
||||
Test->repl->ssh_node(i, true, "rm /etc/my.cnf.d/utf64.cnf");
|
||||
Test->repl->ssh_node(i, (char *) "rm /etc/my.cnf.d/utf64.cnf", true);
|
||||
}
|
||||
Test->repl->start_replication();
|
||||
|
||||
|
Reference in New Issue
Block a user