Fix check_backend

Fixed the core generation and removed obsolete files.
This commit is contained in:
Markus Mäkelä
2018-01-26 10:41:34 +02:00
parent 3da4aa1665
commit 4dc9b56d29
3 changed files with 9 additions and 25 deletions

View File

@ -8,23 +8,14 @@
int main(int argc, char *argv[])
{
char src[1024];
char dst[1024];
TestConnections * Test = new TestConnections(argc, argv);
for (int i = 0; i < Test->maxscales->N; i++)
{
sprintf(src, "%s/mdbci/add_core_cnf.sh", test_dir);
Test->maxscales->ssh_node_f(i, false, "mkdir %s/ccore", Test->maxscales->access_homedir[i]);
sprintf(dst, "%s/ccore/", Test->maxscales->access_homedir[i]);
Test->maxscales->copy_to_node(i, src, dst);
sprintf(dst, "%s/ccore/", Test->maxscales->access_homedir[i]);
Test->maxscales->ssh_node_f(i, true, "%s/ccore/add_core_cnf.sh", Test->maxscales->access_homedir[i]);
}
std::string src = std::string(test_dir) + "/mdbci/add_core_cnf.sh";
Test->copy_to_maxscale(src.c_str(), Test->maxscale_access_homedir);
Test->ssh_maxscale(true, "%s/add_core_cnf.sh %s", Test->maxscale_access_homedir,
Test->verbose ? "verbose" : "");
/*Test->restart_maxscale();
sleep(5);*/
Test->set_timeout(10);
Test->tprintf("Connecting to Maxscale routers with Master/Slave backend\n");