diff --git a/maxscale-system-test/nodes.cpp b/maxscale-system-test/nodes.cpp index 385ed7ccf..2f92f039e 100644 --- a/maxscale-system-test/nodes.cpp +++ b/maxscale-system-test/nodes.cpp @@ -166,8 +166,6 @@ int Nodes::ssh_node(int node, const char *ssh, bool sudo) free(cmd); - return rc; - if (WIFEXITED(rc)) { diff --git a/maxscale-system-test/testconnections.cpp b/maxscale-system-test/testconnections.cpp index ae37b1d8a..18ff86a32 100644 --- a/maxscale-system-test/testconnections.cpp +++ b/maxscale-system-test/testconnections.cpp @@ -769,9 +769,9 @@ 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 1; done"; + const char* command = "for i in `find /tmp/ -name 'core*'`; do test -e $i && exit 42; done"; int rc = maxscales->ssh_node_f(i, true, command); - assert(rc == 0, "Test should not generate core files"); + assert(rc != 42, "Test should not generate core files"); } return 0; }