Make tests less verbose
The numeric values of the labels aren't of value when inspecting test results. For this reason, it makes sense to put them behind the verbose flag to make test framework debugging happen purpose.
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#include <string>
|
||||
#include <stdio.h>
|
||||
#include "labels_table.h"
|
||||
#include "testconnections.h"
|
||||
|
||||
std::string get_mdbci_lables(const char *labels_string)
|
||||
{
|
||||
@ -9,12 +10,20 @@ std::string get_mdbci_lables(const char *labels_string)
|
||||
|
||||
for (size_t i = 0; i < sizeof(labels_table) / sizeof(labels_table_t); i++)
|
||||
{
|
||||
printf("%lu\t %s\n", i, labels_table[i].test_label);
|
||||
if (TestConnections::verbose)
|
||||
{
|
||||
printf("%lu\t %s\n", i, labels_table[i].test_label);
|
||||
}
|
||||
|
||||
if (strstr(labels_string, labels_table[i].test_label))
|
||||
{
|
||||
mdbci_labels += "," + std::string(labels_table[i].mdbci_label);
|
||||
}
|
||||
}
|
||||
printf("mdbci labels %s\n", mdbci_labels.c_str());
|
||||
|
||||
if (TestConnections::verbose)
|
||||
{
|
||||
printf("mdbci labels %s\n", mdbci_labels.c_str());
|
||||
}
|
||||
return mdbci_labels;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user