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

Issue 14244009: Support for removing left over temporary directories from dart processes (Closed)

Created:
7 years, 8 months ago by kustermann
Modified:
7 years, 8 months ago
Reviewers:
ricow1, ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support for removing left over temporary directories from dart processes VM developers have asked for a way to make test.py automatically delete left-over temporary directories at the start. This CL will enable them to do so, but they need to opt-in for it, by setting the environment variable DART_TESTING_DELETE_TEMPORARY_DIRECTORIES to 1. Committed: https://code.google.com/p/dart/source/detail?r=21669

Patch Set 1 #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -5 lines) Patch
M tools/test.dart View 1 2 1 chunk +45 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
kustermann
7 years, 8 months ago (2013-04-15 13:27:33 UTC) #1
ricow1
LGTM https://codereview.chromium.org/14244009/diff/4001/tools/test.dart File tools/test.dart (right): https://codereview.chromium.org/14244009/diff/4001/tools/test.dart#newcode261 tools/test.dart:261: } catch (error) {} maybe print this to ...
7 years, 8 months ago (2013-04-15 13:35:47 UTC) #2
ahe
I wonder if we can avoid opting in? For example, if test.dart can recognize its ...
7 years, 8 months ago (2013-04-17 13:05:32 UTC) #3
kustermann
On 2013/04/17 13:05:32, ahe wrote: > I wonder if we can avoid opting in? > ...
7 years, 8 months ago (2013-04-17 13:28:12 UTC) #4
kustermann
https://codereview.chromium.org/14244009/diff/4001/tools/test.dart File tools/test.dart (right): https://codereview.chromium.org/14244009/diff/4001/tools/test.dart#newcode261 tools/test.dart:261: } catch (error) {} On 2013/04/15 13:35:47, ricow1 wrote: ...
7 years, 8 months ago (2013-04-17 14:04:49 UTC) #5
ahe
LGTM if this is really what you want to do. I don't think this is ...
7 years, 8 months ago (2013-04-17 15:08:13 UTC) #6
ricow1
The problem with doing this by default is that you have to communicate this, people ...
7 years, 8 months ago (2013-04-18 07:07:59 UTC) #7
kustermann
Committed patchset #3 manually as r21669 (presubmit successful).
7 years, 8 months ago (2013-04-18 09:18:37 UTC) #8
kustermann
https://codereview.chromium.org/14244009/diff/4001/tools/test.dart File tools/test.dart (right): https://codereview.chromium.org/14244009/diff/4001/tools/test.dart#newcode238 tools/test.dart:238: if (environment['DART_TESTING_DELETE_TEMPORARY_DIRECTORIES'] == '1') { On 2013/04/17 15:08:13, ahe ...
7 years, 8 months ago (2013-04-18 09:24:08 UTC) #9
ahe
https://codereview.chromium.org/14244009/diff/4001/tools/test.dart File tools/test.dart (right): https://codereview.chromium.org/14244009/diff/4001/tools/test.dart#newcode241 tools/test.dart:241: var dir = new Directory('').createTempSync(); On 2013/04/18 09:24:08, kustermann ...
7 years, 8 months ago (2013-04-18 09:26:44 UTC) #10
kustermann
7 years, 8 months ago (2013-04-18 09:29:32 UTC) #11
Message was sent while issue was closed.
> Why are you using async API then?  Why does deleteTemporaryDartDirectories
> return a Future?  It seems to me that the rest of main will not start before
> these directories are deleted, so why not use synchronous API?

Short answer: I didn't know there was a 'listSync' method.

Powered by Google App Engine
This is Rietveld 408576698