diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-10-09 19:11:31 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-10-10 19:54:51 +0300 |
commit | 026e15fe3d6dae0c3f11775d19dcfc13743ff1c0 (patch) | |
tree | 6cc78c47b634b10d68bb1a99df8b1e605777f2f9 | |
parent | 2a3cc96c4208a0d352dfee41ed1f29a756abe44c (diff) | |
download | qtlocation-mapboxgl-026e15fe3d6dae0c3f11775d19dcfc13743ff1c0.tar.gz |
[render-test] Fix rootPath parameter being ignored
It was doing nothing and always using the default root path.
-rw-r--r-- | render-test/parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render-test/parser.cpp b/render-test/parser.cpp index 024adf91d1..e9df704941 100644 --- a/render-test/parser.cpp +++ b/render-test/parser.cpp @@ -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". |