Apply setup(const vector<string>&) to -all option

This commit is contained in:
Francis ANDRE 2018-05-21 10:33:25 +02:00
parent df63ac480e
commit b0e7af2c75

View File

@ -76,7 +76,6 @@ bool TestRunner::run(const std::vector<std::string>& args)
{
if (i + 1 < args.size())
setup.push_back(args[++i]);
continue;
}
@ -115,6 +114,8 @@ bool TestRunner::run(const std::vector<std::string>& args)
{
for (Mappings::iterator it = _mappings.begin(); it != _mappings.end(); ++it)
{
if (setup.size() > 0)
it->second->addSetup(setup);
if (!run(it->second)) success = false;
numberOfTests++;
}