MXS-2644 Move ci setup from constructor to setup() function

By moving the setting up of the test environment from the constructor
to a separate setup()-function, it is possible to introduce virtual
functions and make it easier to do things differently depending on
whether the backend is MariaDB, Galera och Clustrix.
This commit is contained in:
Johan Wikman
2019-08-21 13:16:06 +03:00
parent 52df969e13
commit 855b8d876a
7 changed files with 68 additions and 36 deletions

View File

@ -9,8 +9,13 @@
#include "envv.h"
Nodes::Nodes()
Nodes::Nodes(const char* pref,
const std::string& network_config,
bool verbose)
: network_config(network_config)
, verbose(verbose)
{
strcpy(this->prefix, pref);
}
bool Nodes::check_node_ssh(int node)