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

Unified Diff: utils/tests/pub/test_pub.dart

Issue 10825422: Don't pollute repo with temp dirs for pub tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/pub/io.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index ece38fad9b17953784f5ff21b7e76cb9dd4d8108..9e8e9d373d0d40e05b10400f2673a2ff11e7311d 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -316,7 +316,7 @@ void ensureGit() {
}
Future<Directory> _setUpSandbox() {
- return createTempDir('pub-test-sandbox-');
+ return createTempDir();
}
Future _runScheduled(Directory parentDir, List<_ScheduledEvent> scheduled) {
@@ -790,7 +790,7 @@ class TarFileDescriptor extends Descriptor {
var sinkStream = new ListInputStream();
var tempDir;
// TODO(nweiz): propagate any errors to the return value. See issue 3657.
- createTempDir("pub-test-tmp-").chain((_tempDir) {
+ createTempDir().chain((_tempDir) {
tempDir = _tempDir;
return create(tempDir);
}).then((tar) {
« no previous file with comments | « utils/pub/io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698