aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-19 19:12:53 +0000
committerGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-19 19:12:53 +0000
commit3832da1e9cf6066d22007881888d65405d8cc6a5 (patch)
treeada675b0173b4158f9bb6e21c8371d3a1345a5a4 /tools
parent99a8ec97058a9224bdef434d1410dd5c24bffec6 (diff)
Allow skimage expectations file to not exist.
If the file is not there, assume that all images are mismatches. This allows running the test before the initial rebaseline. R=epoger@google.com Review URL: https://codereview.chromium.org/17448011 git-svn-id: http://skia.googlecode.com/svn/trunk@9690 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools')
-rw-r--r--tools/skimage_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/skimage_main.cpp b/tools/skimage_main.cpp
index 107d3bfdb8..a6a2736e8d 100644
--- a/tools/skimage_main.cpp
+++ b/tools/skimage_main.cpp
@@ -484,7 +484,7 @@ int tool_main(int argc, char** argv) {
SkAutoGraphics ag;
- if (!FLAGS_readExpectationsPath.isEmpty()) {
+ if (!FLAGS_readExpectationsPath.isEmpty() && sk_exists(FLAGS_readExpectationsPath[0])) {
gJsonExpectations.reset(SkNEW_ARGS(skiagm::JsonExpectationsSource,
(FLAGS_readExpectationsPath[0])));
}