mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Individual test result should not be printed for automake output
- Test results output escape characters to highlight whether the test passed or failed. Additionally, the input & output for each test can include non-ASCII characters. These characters break parsing of results (.log & .trs files) with grep, as the files are interpreted to be binary.
This commit is contained in:
parent
752ab76238
commit
a5f223cb52
@ -275,10 +275,10 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
if (!test.m_automake_output) {
|
if (!test.m_automake_output) {
|
||||||
std::cout << "Total >> " << total << std::endl;
|
std::cout << "Total >> " << total << std::endl;
|
||||||
}
|
|
||||||
|
|
||||||
for (const auto t : results) {
|
for (const auto t : results) {
|
||||||
std::cout << t->print() << std::endl;
|
std::cout << t->print() << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const int skp = std::count_if(results.cbegin(), results.cend(), [](const auto &i)
|
const int skp = std::count_if(results.cbegin(), results.cend(), [](const auto &i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user