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

Unified Diff: test/codegen_test.dart

Issue 1378763006: Fix build - create output dir if needed (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 2 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: test/codegen_test.dart
diff --git a/test/codegen_test.dart b/test/codegen_test.dart
index 4b2b24db3bde4ad279ed1fcd144ca372f40a37de..dac69944d4637a86e388b74d642fcd37671ccba7 100644
--- a/test/codegen_test.dart
+++ b/test/codegen_test.dart
@@ -92,6 +92,8 @@ main(arguments) {
var message = '''
// Messages from compiling ${path.basenameWithoutExtension(url)}.dart
$compilerMessages''';
+ var dir = file.parent;
+ if (!dir.existsSync()) dir.createSync(recursive: true);
file.writeAsStringSync(message);
compilerMessages.clear();
});
« 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