From 5cdea12ea69a753802898d3ac8b906c16af37d28 Mon Sep 17 00:00:00 2001 From: Timofey Turenko Date: Fri, 5 Apr 2019 10:31:51 +0300 Subject: [PATCH] restore test_name processing --- maxscale-system-test/testconnections.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/maxscale-system-test/testconnections.cpp b/maxscale-system-test/testconnections.cpp index 1cd40ae8b..2e82d6b4d 100644 --- a/maxscale-system-test/testconnections.cpp +++ b/maxscale-system-test/testconnections.cpp @@ -217,10 +217,13 @@ TestConnections::TestConnections(int argc, char *argv[]): } } - test_name = basename(argv[0]); - if (!strcmp(test_name, "non_native_setup")) + if (optind < argc) { - test_name = argv[1]; + test_name = argv[optind]; + } + else + { + test_name = basename(argv[0]); } const char * labels_string = NULL;