summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-10-09 19:11:31 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-10-10 19:54:51 +0300
commit026e15fe3d6dae0c3f11775d19dcfc13743ff1c0 (patch)
tree6cc78c47b634b10d68bb1a99df8b1e605777f2f9
parent2a3cc96c4208a0d352dfee41ed1f29a756abe44c (diff)
downloadqtlocation-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.cpp4
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".