[render-test] Fix rootPath parameter being ignored

It was doing nothing and always using the default root path.
This commit is contained in:
Thiago Marcos P. Santos
2019-10-09 19:11:31 +03:00
parent 2a3cc96c42
commit 026e15fe3d

View File

@@ -365,11 +365,11 @@ ArgumentsTuple parseArguments(int argc, char** argv) {
std::vector<mbgl::filesystem::path> paths;
for (const auto& id : args::get(testNameValues)) {
paths.emplace_back(TestRunner::getBasePath() + "/" + id);
paths.emplace_back(rootPath / id);
}
if (paths.empty()) {
paths.emplace_back(TestRunner::getBasePath());
paths.emplace_back(rootPath);
}
// Recursively traverse through the test paths and collect test directories containing "style.json".