refactored tests (#147)

This commit is contained in:
Timofey Turenko
2017-12-08 12:23:04 +02:00
committed by GitHub
parent c6daf8c26b
commit 3c88bf1ec6
253 changed files with 5265 additions and 3649 deletions

View File

@ -11,9 +11,11 @@
int main(int argc, char *argv[])
{
TestConnections * Test = new TestConnections(argc, argv);
int exit_code;
Test->set_timeout(50);
char *user = Test->ssh_maxscale_output(false, "ps -FC maxscale|tail -n 1|cut -f 1 -d \" \"");
char *user = Test->maxscales->ssh_node_output(0, "ps -FC maxscale|tail -n 1|cut -f 1 -d \" \"", false,
&exit_code);
char *nl = user ? strchr(user, '\n') : NULL;
if (nl)