From 01b04094a64376cb6732288223935e1d280c9a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 28 Mar 2018 19:15:42 +0300 Subject: [PATCH] Only check for cores at root level The previous core check would pick up any file in /tmp/ that would start with the `core` prefix. This included some npm generated files which are created if MaxCtrl is built on the MaxScale machine. --- maxscale-system-test/testconnections.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxscale-system-test/testconnections.cpp b/maxscale-system-test/testconnections.cpp index 18ff86a32..4182dadf7 100644 --- a/maxscale-system-test/testconnections.cpp +++ b/maxscale-system-test/testconnections.cpp @@ -769,7 +769,7 @@ int TestConnections::copy_maxscale_logs(double timestamp) maxscales->ssh_node_f(i, true, "chmod a+r -R %s", log_dir_i); } - const char* command = "for i in `find /tmp/ -name 'core*'`; do test -e $i && exit 42; done"; + const char* command = "ls /tmp/core* && exit 42"; int rc = maxscales->ssh_node_f(i, true, command); assert(rc != 42, "Test should not generate core files"); }