mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
Update AOT Android harness for single-file app snapshots.
R=fschneider@google.com Review URL: https://codereview.chromium.org/2419183002 .
This commit is contained in:
parent
fe04737a77
commit
656964107b
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue