diff options
Diffstat (limited to 'render-test')
-rw-r--r-- | render-test/runner.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/render-test/runner.cpp b/render-test/runner.cpp index 7b0f210b62..1224d398ab 100644 --- a/render-test/runner.cpp +++ b/render-test/runner.cpp @@ -56,6 +56,9 @@ bool TestRunner::checkImage(mbgl::PremultipliedImage&& actual, TestMetadata& met mbgl::filesystem::create_directories(metadata.paths.platformExpectations); mbgl::util::write_file(metadata.paths.platformExpectations.string() + "/expected.png", mbgl::encodePNG(actual)); return true; + } else if (getenv("UPDATE_GENERIC")) { + mbgl::util::write_file(base + "/expected.png", mbgl::encodePNG(actual)); + return true; } mbgl::util::write_file(base + "/actual.png", metadata.actual); |