config_test should fail also if VM is broken
config_test expects Maxscale start failure, but ssh to Maxscale node also fails if VM is broken. Test should fail in case of VM problem to prevent Maxscale problem hiding.
This commit is contained in:
@ -2167,11 +2167,11 @@ bool TestConnections::test_bad_config(int m, const string& config)
|
||||
// Set the timeout to prevent hangs with configurations that work
|
||||
set_timeout(20);
|
||||
|
||||
return maxscales->ssh_node_f(m,
|
||||
ssh_rc = maxscales->ssh_node_f(m,
|
||||
true,
|
||||
"cp /tmp/maxscale.cnf /etc/maxscale.cnf; pkill -9 maxscale; "
|
||||
"maxscale -U maxscale -lstdout &> /dev/null && sleep 1 && pkill -9 maxscale")
|
||||
== 0;
|
||||
"maxscale -U maxscale -lstdout &> /dev/null && sleep 1 && pkill -9 maxscale");
|
||||
return ((ssh_rc == 0) or (ssh_rc >= 256));
|
||||
}
|
||||
int TestConnections::call_mdbci(const char* options)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user