Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
output stright the test info when using --singletest option
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega committed May 16, 2017
1 parent babba9b commit 1429443
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions test/tools/libtesteth/TestHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ void executeTests(const string& _name, const string& _testPathAppendix, const st
{
try
{
cnote << "Populating tests...";
if (!Options::get().singleTest)
cnote << "Populating tests...";
json_spirit::mValue v;
boost::filesystem::path p(__FILE__);

Expand All @@ -477,7 +478,8 @@ void executeTests(const string& _name, const string& _testPathAppendix, const st
}
try
{
cnote << "TEST " << name << ":";
if (!Options::get().singleTest)
cnote << "TEST " << name << ":";
json_spirit::mValue v;
string s = asString(dev::contents(testPath + "/" + name + ".json"));
BOOST_REQUIRE_MESSAGE(s.length() > 0, "Contents of " + testPath + "/" + name + ".json is empty. Have you cloned the 'tests' repo branch develop and set ETHEREUM_TEST_PATH to its path?");
Expand Down
6 changes: 4 additions & 2 deletions test/tools/libtesteth/TestOutputHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ void TestOutputHelper::initTest(int _maxTests)
NoProof::init();
m_timer.restart();
m_currentTestCaseName = boost::unit_test::framework::current_test_case().p_name;
std::cout << "Test Case \"" + m_currentTestCaseName + "\": " << std::endl;
if (!Options::get().singleTest)
std::cout << "Test Case \"" + m_currentTestCaseName + "\": " << std::endl;
m_maxTests = _maxTests;
m_currTest = 0;
}
Expand All @@ -56,7 +57,8 @@ void TestOutputHelper::initTest(json_spirit::mValue& _v)
NoProof::init();
m_timer.restart();
m_currentTestCaseName = boost::unit_test::framework::current_test_case().p_name;
std::cout << "Test Case \"" + m_currentTestCaseName + "\": " << std::endl;
if (!Options::get().singleTest)
std::cout << "Test Case \"" + m_currentTestCaseName + "\": " << std::endl;
m_maxTests = _v.get_obj().size();
m_currTest = 0;
}
Expand Down

0 comments on commit 1429443

Please sign in to comment.