test_bad_config() return 1 when ssh result is 256

This commit is contained in:
Timofey Turenko 2020-12-07 22:15:09 +02:00
parent 65261c8eeb
commit f9be1d9cb4

View File

@ -2171,7 +2171,7 @@ bool TestConnections::test_bad_config(int m, const string& config)
true,
"cp /tmp/maxscale.cnf /etc/maxscale.cnf; pkill -9 maxscale; "
"maxscale -U maxscale -lstdout &> /dev/null && sleep 1 && pkill -9 maxscale");
return ((ssh_rc == 0) or (ssh_rc >= 256));
return ((ssh_rc == 0) || (ssh_rc == 256));
}
int TestConnections::call_mdbci(const char* options)
{