Skip mxs421_events if syslog doesn't log to file

The test cannot work unless syslog writes to a file.
This commit is contained in:
Markus Mäkelä 2018-07-12 10:50:45 +03:00
parent 3078da3992
commit 12b4f67f30
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -73,6 +73,13 @@ int main(int argc, char* argv[])
srandom(time(NULL));
TestConnections test(argc, argv);
int rc = test.maxscales->ssh_node_f(0, true, "test -f /var/log/auth.log");
if (rc != 0)
{
test.tprintf("Skipping test, `/var/log/auth.log` does not exist.");
return 0;
}
test.maxscales->connect();