Speed up test startup

The VM connectivity and log truncation is now done in parallel.
This commit is contained in:
Markus Mäkelä
2019-04-07 19:41:38 +03:00
parent 55bb3e9250
commit 5e3af05d48
4 changed files with 31 additions and 30 deletions

View File

@ -343,7 +343,7 @@ TestConnections::TestConnections(int argc, char* argv[])
repl->use_ipv6 = use_ipv6;
repl->take_snapshot_command = take_snapshot_command;
repl->revert_snapshot_command = revert_snapshot_command;
if (repl->check_nodes())
if (!repl->check_nodes())
{
if (call_mdbci("--recreate"))
{
@ -363,7 +363,7 @@ TestConnections::TestConnections(int argc, char* argv[])
galera->use_ipv6 = false;
galera->take_snapshot_command = take_snapshot_command;
galera->revert_snapshot_command = revert_snapshot_command;
if (galera->check_nodes())
if (!galera->check_nodes())
{
if (call_mdbci("--recreate"))
{
@ -377,7 +377,7 @@ TestConnections::TestConnections(int argc, char* argv[])
}
maxscales = new Maxscales("maxscale", test_dir, verbose, use_valgrind, network_config);
if (maxscales->check_nodes() ||
if (!maxscales->check_nodes() ||
((maxscales->N < 2) && (mdbci_labels.find(std::string("SECOND_MAXSCALE")) != std::string::npos))
)
{