Index: tools/testing/dart/runtime_configuration.dart |
diff --git a/tools/testing/dart/runtime_configuration.dart b/tools/testing/dart/runtime_configuration.dart |
index 2978003369e1da3c254d781943598e26674161c0..19fcdda982198a3b576f0d2326a25653d6898027 100644 |
--- a/tools/testing/dart/runtime_configuration.dart |
+++ b/tools/testing/dart/runtime_configuration.dart |
@@ -218,8 +218,11 @@ class StandaloneDartRuntimeConfiguration extends DartVmRuntimeConfiguration { |
if (script != null && type != 'application/dart') { |
throw "Dart VM cannot run files of type '$type'."; |
} |
+ String executable = suite.configuration['noopt'] |
+ ? suite.dartVmNooptBinaryFileName |
+ : suite.dartVmBinaryFileName; |
return <Command>[commandBuilder.getVmCommand( |
- suite.dartVmBinaryFileName, arguments, environmentOverrides)]; |
+ executable, arguments, environmentOverrides)]; |
} |
} |