Small refactorings for isoltest

This commit is contained in:
Alex Beregszaszi
2021-04-22 01:04:34 +01:00
parent 8527430421
commit 8fb7a18800
3 changed files with 13 additions and 5 deletions
+3 -1
View File
@@ -151,7 +151,6 @@ bool TestTool::m_exitRequested = false;
TestTool::Result TestTool::process()
{
bool formatted{!m_options.noColor};
std::stringstream outputMessages;
try
{
@@ -168,6 +167,8 @@ TestTool::Result TestTool::process()
m_options.enforceGasTestMinValue
});
if (m_test->shouldRun())
{
std::stringstream outputMessages;
switch (TestCase::TestResult result = m_test->run(outputMessages, " ", formatted))
{
case TestCase::TestResult::Success:
@@ -183,6 +184,7 @@ TestTool::Result TestTool::process()
cout << endl << outputMessages.str() << endl;
return result == TestCase::TestResult::FatalError ? Result::Exception : Result::Failure;
}
}
else
{
AnsiColorized(cout, formatted, {BOLD, YELLOW}) << "NOT RUN" << endl;