File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -304,6 +304,8 @@ bool pathHasTests(boost::filesystem::path const& _path)
304304
305305void 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 )
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments