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

Unified Diff: tools/testing/dart/multitest.dart

Issue 10697018: Test scripts: Replace a guard that was optimistically removed, fixing a break on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/multitest.dart
diff --git a/tools/testing/dart/multitest.dart b/tools/testing/dart/multitest.dart
index c98aae642aa7d15af589122c4198e6168cc72fd4..ba59972a5f825b58f7ed825cf4c602258d1e05eb 100644
--- a/tools/testing/dart/multitest.dart
+++ b/tools/testing/dart/multitest.dart
@@ -215,7 +215,9 @@ void DoMultitest(Path filePath,
for (Path importPath in importsToCopy) {
// Make sure the target directory exists.
Path importDir = importPath.directoryPath;
- TestUtils.mkdirRecursive(targetDir, importDir);
+ if (!importDir.isEmpty) {
+ TestUtils.mkdirRecursive(targetDir, importDir);
+ }
// Copy file.
futureCopies.add(TestUtils.copyFile(sourceDir.join(importPath),
targetDir.join(importPath)));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698