Skip to content

Commit 156b5ba

Browse files
author
winsvega
authored
Merge pull request #122 from ethereum/develop
version 0.1.1 development
2 parents aa5ff53 + b8a7f18 commit 156b5ba

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

retesteth/TestOutputHelper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ bool pathHasTests(boost::filesystem::path const& _path)
304304

305305
void checkUnfinishedTestFolders()
306306
{
307+
if (Options::get().singleTestFile.is_initialized())
308+
return;
307309
std::lock_guard<std::mutex> lock(g_finishedTestFoldersMapMutex);
308310
// Unit tests does not mark test folders
309311
if (finishedTestFoldersMap.size() == 0)

retesteth/main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,27 @@ void customTestSuite()
3333
if (opt.singleTestFile.is_initialized())
3434
{
3535
boost::filesystem::path file(opt.singleTestFile.get());
36-
if (opt.rCurrentTestSuite.find_first_of("GeneralStateTests") != std::string::npos)
36+
if (opt.rCurrentTestSuite.find("GeneralStateTests") != std::string::npos)
3737
{
3838
test::StateTestSuite suite;
3939
suite.runTestWithoutFiller(file);
4040
}
41-
else if (opt.rCurrentTestSuite.find_first_of("BlockchainTests") != std::string::npos)
41+
else if (opt.rCurrentTestSuite.find("BlockchainTests") != std::string::npos)
4242
{
4343
test::BlockchainTestValidSuite suite;
4444
suite.runTestWithoutFiller(file);
4545
}
46-
else if (opt.rCurrentTestSuite.find_first_of("TransitionTests") != std::string::npos)
46+
else if (opt.rCurrentTestSuite.find("TransitionTests") != std::string::npos)
4747
{
4848
// dev::test::TransitionTestsSuite suite;
4949
// suite.runTestWithoutFiller(file);
5050
}
51-
else if (opt.rCurrentTestSuite.find_first_of("VMtests") != std::string::npos)
51+
else if (opt.rCurrentTestSuite.find("VMtests") != std::string::npos)
5252
{
5353
// dev::test::VmTestSuite suite;
5454
// suite.runTestWithoutFiller(file);
5555
}
56-
else if (opt.rCurrentTestSuite.find_first_of("TransactionTests") != std::string::npos)
56+
else if (opt.rCurrentTestSuite.find("TransactionTests") != std::string::npos)
5757
{
5858
// dev::test::TransactionTestSuite suite;
5959
// suite.runTestWithoutFiller(file);

0 commit comments

Comments
 (0)