From 12b4f67f305caf6b4595779c9174bc9067fec391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 12 Jul 2018 10:50:45 +0300 Subject: [PATCH] Skip mxs421_events if syslog doesn't log to file The test cannot work unless syslog writes to a file. --- maxscale-system-test/mxs421_events.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maxscale-system-test/mxs421_events.cpp b/maxscale-system-test/mxs421_events.cpp index 9cd64429c..ef118a707 100644 --- a/maxscale-system-test/mxs421_events.cpp +++ b/maxscale-system-test/mxs421_events.cpp @@ -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();