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

Unified Diff: pkg/dev_compiler/test/codegen_test.dart

Issue 2579693002: fix DDC codegen test (Closed)
Patch Set: Created 4 years 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: pkg/dev_compiler/test/codegen_test.dart
diff --git a/pkg/dev_compiler/test/codegen_test.dart b/pkg/dev_compiler/test/codegen_test.dart
index 9bf3dc5fce8b53fc1069d5d3677f72766515ecb2..f7f4d14f69480e4915715151062ac2c3f0314202 100644
--- a/pkg/dev_compiler/test/codegen_test.dart
+++ b/pkg/dev_compiler/test/codegen_test.dart
@@ -139,8 +139,15 @@ main(List<String> arguments) {
}
var declaredVars = <String, String>{};
- var argResults =
- compileArgParser.parse(extractDefinedVariables(args, declaredVars));
+ args = args.expand((String arg) => arg.split('=')).toList();
+ args = extractDefinedVariables(args, declaredVars);
+ ArgResults argResults;
+ try {
+ argResults = compileArgParser.parse(args);
+ } catch (e) {
+ print('Failed to parse $args');
+ rethrow;
+ }
var options = new CompilerOptions.fromArguments(argResults);
var moduleFormat = parseModuleFormatOption(argResults).first;
« 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