Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Issue 17294006: skimage: if --readPath points at an empty dir, create an empty expectations file (Closed)

Created:
7 years, 6 months ago by epoger
Modified:
7 years, 6 months ago
Reviewers:
scroggo
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

skimage: if --readPath points at an empty dir, create an empty expectations file TBR=scroggo Committed: https://code.google.com/p/skia/source/detail?r=9642 After being reverted, this has been replaced by the similar https://codereview.chromium.org/17101029/

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -1 line) Patch
M tools/skimage_main.cpp View 1 chunk +2 lines, -1 line 2 comments Download
A tools/tests/skimage/output-expected/empty-dir/expectations.json View 1 chunk +9 lines, -0 lines 1 comment Download
A tools/tests/skimage/output-expected/nonexistent-dir/expectations.json View 1 chunk +9 lines, -0 lines 1 comment Download
M tools/tests/skimage_self_test.py View 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
epoger
Apologies for the TBR commit, Leon, but this should fix the partial buildbot breakage after ...
7 years, 6 months ago (2013-06-17 19:34:47 UTC) #1
epoger
Committed patchset #1 manually as r9642 (presubmit successful).
7 years, 6 months ago (2013-06-17 19:35:19 UTC) #2
epoger
I have reverted this as https://code.google.com/p/skia/source/detail?r=9647 , since my fix to the buildbot scripts ( ...
7 years, 6 months ago (2013-06-18 02:56:28 UTC) #3
scroggo
https://codereview.chromium.org/17294006/diff/1/tools/skimage_main.cpp File tools/skimage_main.cpp (right): https://codereview.chromium.org/17294006/diff/1/tools/skimage_main.cpp#newcode518 tools/skimage_main.cpp:518: // FLAGS_readPath[i] is an empty or nonexistent directory, I ...
7 years, 6 months ago (2013-06-19 15:34:09 UTC) #4
epoger
7 years, 6 months ago (2013-06-19 15:54:15 UTC) #5
https://codereview.chromium.org/17294006/diff/1/tools/skimage_main.cpp
File tools/skimage_main.cpp (right):

https://codereview.chromium.org/17294006/diff/1/tools/skimage_main.cpp#newcod...
tools/skimage_main.cpp:518: // FLAGS_readPath[i] is an empty or nonexistent
directory,
On 2013/06/19 15:34:09, scroggo wrote:
> I am okay with the spirit of this change, but this else case is supposed to
> cover someone calling
> 
> skimage --readPath image.png
> 
> With this change, that use case is no longer supported.

Yup.  It is handy that --readPath can take either folders or files... but it
should probably handle empty directories differently than it does now (it acts
like the folder was a file it couldn't decode).

Anyway, happily, I don't need this change at present...

Powered by Google App Engine
This is Rietveld 408576698