mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Small refactorings for isoltest
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user