diff --git a/maxscale-system-test/labels_table.cpp b/maxscale-system-test/labels_table.cpp index 98451a033..13cb6ea82 100644 --- a/maxscale-system-test/labels_table.cpp +++ b/maxscale-system-test/labels_table.cpp @@ -23,9 +23,9 @@ std::string get_mdbci_lables(const char *labels_string) return mdbci_labels; } -bool check_label(std::string labels, std::string label) +bool has_label(std::string labels, std::string label) { - std::string labels_ext = std::string(";") + labels + std::string(";"); + std::string labels_ext = ";" + labels + ";"; std::string label_ext = std::string(";") + label + std::string(";"); return (labels_ext.find(label_ext, 0) != std::string::npos); } diff --git a/maxscale-system-test/labels_table.h b/maxscale-system-test/labels_table.h index b9598e7df..e066c0453 100644 --- a/maxscale-system-test/labels_table.h +++ b/maxscale-system-test/labels_table.h @@ -36,4 +36,4 @@ std::string get_mdbci_lables(const char * labels_string); * @param label Labels to find * @return true if label present */ -bool check_label(std::string labels, std::string label); +bool has_label(std::string labels, std::string label); diff --git a/maxscale-system-test/testconnections.cpp b/maxscale-system-test/testconnections.cpp index 84bc1ed7c..893461272 100644 --- a/maxscale-system-test/testconnections.cpp +++ b/maxscale-system-test/testconnections.cpp @@ -299,7 +299,7 @@ TestConnections::TestConnections(int argc, char* argv[]) mdbci_labels = get_mdbci_lables(labels); - if (check_label(std::string(labels), "BACKEND_SSL")) + if (has_label(std::string(labels), "BACKEND_SSL")) { backend_ssl = true; tprintf("Test has BACKEND_SSL label");