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

Issue 2896423004: webkitpy: Remove contents of directory. (Closed)

Created:
3 years, 7 months ago by mithro
Modified:
3 years, 6 months ago
CC:
blink-reviews, chromium-reviews, Dirk Pranke
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

webkitpy: Remove contents of directory. Adding a function which removes the contents of a directory but *not* the directory itself. This is used by the merge-layout-test-results script when generating output into an existing directory. BUG=721466, 524758 Review-Url: https://codereview.chromium.org/2896423004 Cr-Commit-Position: refs/heads/master@{#475391} Committed: https://chromium.googlesource.com/chromium/src/+/0f2a25964b96c4333d57da6d7fb38afef4bd02fc

Patch Set 1 #

Total comments: 13

Patch Set 2 : Fixing stuff. #

Patch Set 3 : Fixing mocks #

Total comments: 2

Patch Set 4 : Adding simple test. #

Patch Set 5 : Fixing nits #

Patch Set 6 : Fixing tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -48 lines) Patch
M third_party/WebKit/Tools/Scripts/merge-layout-test-results View 1 2 3 4 3 chunks +32 lines, -39 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py View 1 2 3 4 5 5 chunks +84 lines, -7 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_mock.py View 1 2 3 4 5 3 chunks +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_unittest.py View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (28 generated)
mithro
Hi! While we are working on using different directories in recipes for the merged output ...
3 years, 7 months ago (2017-05-25 06:44:21 UTC) #6
qyearsley
General background question, when does the merge-layout-test-results script generate output into an existing directory that ...
3 years, 7 months ago (2017-05-25 23:32:12 UTC) #7
mcgreevy_g
Why do we need this at all if we're going to separate the output directories ...
3 years, 7 months ago (2017-05-26 03:02:43 UTC) #9
mithro
On 2017/05/25 23:32:12, qyearsley wrote: > General background question, when does the merge-layout-test-results script > ...
3 years, 7 months ago (2017-05-26 04:04:23 UTC) #10
mithro
On 2017/05/26 03:02:43, mcgreevy_g wrote: > Why do we need this at all if we're ...
3 years, 7 months ago (2017-05-26 04:09:32 UTC) #11
mcgreevy_g
https://codereview.chromium.org/2896423004/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py File third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py (right): https://codereview.chromium.org/2896423004/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py#newcode283 third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py:283: bool: True when the directory is now empty. s/when/if/ ...
3 years, 7 months ago (2017-05-26 06:38:01 UTC) #12
mithro
https://codereview.chromium.org/2896423004/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py File third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py (right): https://codereview.chromium.org/2896423004/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py#newcode283 third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py:283: bool: True when the directory is now empty. On ...
3 years, 6 months ago (2017-05-29 03:55:58 UTC) #13
mcgreevy_g
https://codereview.chromium.org/2896423004/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py File third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py (right): https://codereview.chromium.org/2896423004/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py#newcode316 third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py:316: self.remove(fullname) > The desired > behaviour is to attempt ...
3 years, 6 months ago (2017-05-29 04:17:56 UTC) #16
mithro
https://codereview.chromium.org/2896423004/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py File third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py (right): https://codereview.chromium.org/2896423004/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py#newcode316 third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py:316: self.remove(fullname) On 2017/05/29 04:17:56, mcgreevy_g wrote: > > The ...
3 years, 6 months ago (2017-05-29 06:00:30 UTC) #19
mcgreevy_g
LGTM with nits. https://codereview.chromium.org/2896423004/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py File third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py (right): https://codereview.chromium.org/2896423004/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py#newcode316 third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem.py:316: self.remove(fullname) On 2017/05/29 06:00:30, mithro wrote: ...
3 years, 6 months ago (2017-05-29 07:00:54 UTC) #22
mithro
https://codereview.chromium.org/2896423004/diff/40001/third_party/WebKit/Tools/Scripts/merge-layout-test-results File third_party/WebKit/Tools/Scripts/merge-layout-test-results (right): https://codereview.chromium.org/2896423004/diff/40001/third_party/WebKit/Tools/Scripts/merge-layout-test-results#newcode170 third_party/WebKit/Tools/Scripts/merge-layout-test-results:170: if args.remove_existing_output_directory and not FileSystem().remove_contents(args.output_directory): On 2017/05/29 07:00:54, mcgreevy_g ...
3 years, 6 months ago (2017-05-29 07:14:54 UTC) #25
Mike Lawther (Google)
lgtm
3 years, 6 months ago (2017-05-29 21:05:30 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2896423004/80001
3 years, 6 months ago (2017-05-29 21:05:45 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2896423004/100001
3 years, 6 months ago (2017-05-29 22:29:50 UTC) #40
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/0f2a25964b96c4333d57da6d7fb38afef4bd02fc
3 years, 6 months ago (2017-05-29 22:41:23 UTC) #43
qyearsley
3 years, 6 months ago (2017-05-30 16:22:16 UTC) #44
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698