Index: tools/testing/dart/test_runner.dart |
diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart |
index 5772e44bd50d39f78d8c7b52c682ad296f7fa165..05f06a2c2a2e6c7595a0534d06978e8b952949c6 100644 |
--- a/tools/testing/dart/test_runner.dart |
+++ b/tools/testing/dart/test_runner.dart |
@@ -2607,23 +2607,20 @@ class CommandExecutorImpl implements CommandExecutor { |
.runAdbCommand(['push', '$testdir/$file', '$deviceTestDir/$file'])); |
} |
- if (command.useBlobs) { |
- steps.add(() => device.runAdbShellCommand( |
- [ |
- '$devicedir/dart_precompiled_runtime', |
- '--run-app-snapshot=$deviceTestDir', |
- '--use-blobs' |
- ]..addAll(arguments), |
- timeout: timeoutDuration)); |
- } else { |
- steps.add(() => device.runAdbShellCommand( |
- [ |
- '$devicedir/dart_precompiled_runtime', |
- '--run-app-snapshot=$deviceTestDir' |
- ]..addAll(arguments), |
- timeout: timeoutDuration)); |
+ var args = new List(); |
+ args.addAll(arguments); |
+ for (var i = 0; i < args.length; i++) { |
+ if (args[i].endsWith(".dart")) { |
+ args[i] = "$deviceTestDir/out.aotsnapshot"; |
+ } |
} |
+ steps.add(() => device.runAdbShellCommand( |
+ [ |
+ '$devicedir/dart_precompiled_runtime', |
+ ]..addAll(args), |
+ timeout: timeoutDuration)); |
+ |
var stopwatch = new Stopwatch()..start(); |
var writer = new StringBuffer(); |