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

Issue 493413002: Fix runtime error in copytree() MockFileSystem (Closed)

Created:
6 years, 4 months ago by patro
Modified:
6 years, 3 months ago
Reviewers:
vivekg, Dirk Pranke
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix runtime error in copytree() MockFileSystem We are iterating over a list and modifying the same list within the loop which causes a RunTimeError. Iterate over keys instead of the list itself to prevent this. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181177

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : Adding unit_test #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M Tools/Scripts/webkitpy/common/system/filesystem_mock.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Tools/Scripts/webkitpy/common/system/filesystem_unittest.py View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
patro
Kindly Review Thanks, Shyam Patro
6 years, 4 months ago (2014-08-22 08:24:30 UTC) #1
vivekg
https://codereview.chromium.org/493413002/diff/1/Tools/Scripts/webkitpy/common/system/filesystem_mock.py File Tools/Scripts/webkitpy/common/system/filesystem_mock.py (right): https://codereview.chromium.org/493413002/diff/1/Tools/Scripts/webkitpy/common/system/filesystem_mock.py#newcode394 Tools/Scripts/webkitpy/common/system/filesystem_mock.py:394: #Have to make a copy because we are modifying ...
6 years, 4 months ago (2014-08-22 08:48:09 UTC) #2
vivekg
On 2014/08/22 at 08:24:30, behara.ms wrote: > Kindly Review > > Thanks, > Shyam Patro ...
6 years, 4 months ago (2014-08-22 08:48:34 UTC) #3
patro
PTAL Thanks, Shyam Patro https://codereview.chromium.org/493413002/diff/1/Tools/Scripts/webkitpy/common/system/filesystem_mock.py File Tools/Scripts/webkitpy/common/system/filesystem_mock.py (right): https://codereview.chromium.org/493413002/diff/1/Tools/Scripts/webkitpy/common/system/filesystem_mock.py#newcode394 Tools/Scripts/webkitpy/common/system/filesystem_mock.py:394: #Have to make a copy ...
6 years, 4 months ago (2014-08-22 09:28:28 UTC) #4
vivekg
thanks, lgtm! Lets wait for @dpranke's comments.
6 years, 4 months ago (2014-08-22 10:12:24 UTC) #5
Dirk Pranke
lgtm. https://codereview.chromium.org/493413002/diff/60001/Tools/Scripts/webkitpy/common/system/filesystem_mock.py File Tools/Scripts/webkitpy/common/system/filesystem_mock.py (right): https://codereview.chromium.org/493413002/diff/60001/Tools/Scripts/webkitpy/common/system/filesystem_mock.py#newcode394 Tools/Scripts/webkitpy/common/system/filesystem_mock.py:394: for source_file in self.files.keys(): this change is fine ...
6 years, 3 months ago (2014-08-27 23:42:45 UTC) #6
patro
https://codereview.chromium.org/493413002/diff/60001/Tools/Scripts/webkitpy/common/system/filesystem_mock.py File Tools/Scripts/webkitpy/common/system/filesystem_mock.py (right): https://codereview.chromium.org/493413002/diff/60001/Tools/Scripts/webkitpy/common/system/filesystem_mock.py#newcode394 Tools/Scripts/webkitpy/common/system/filesystem_mock.py:394: for source_file in self.files.keys(): On 2014/08/27 23:42:45, Dirk Pranke ...
6 years, 3 months ago (2014-09-01 09:14:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/behara.ms@samsung.com/493413002/80001
6 years, 3 months ago (2014-09-01 09:15:13 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-01 10:17:45 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 181177

Powered by Google App Engine
This is Rietveld 408576698