Fix has_label() function name
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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");
|
||||
|
||||
Reference in New Issue
Block a user