| Index: tools/testing/dart/runtime_configuration.dart
|
| diff --git a/tools/testing/dart/runtime_configuration.dart b/tools/testing/dart/runtime_configuration.dart
|
| index d0b90f031a47e409f34b527ceaca7a55df16b1c1..5a54d0b6aaf7a1ecaa4d89063a81841ecff79b71 100644
|
| --- a/tools/testing/dart/runtime_configuration.dart
|
| +++ b/tools/testing/dart/runtime_configuration.dart
|
| @@ -237,9 +237,17 @@ class StandaloneDartRuntimeConfiguration extends DartVmRuntimeConfiguration {
|
| throw "Dart VM cannot run files of type '$type'.";
|
| }
|
| String executable = suite.dartVmBinaryFileName;
|
| - return <Command>[
|
| - commandBuilder.getVmCommand(executable, arguments, environmentOverrides, needsDFERunner: needsDFERunner)
|
| - ];
|
| + var commands = new List<Command>();
|
| + commands.add(commandBuilder.getVmCommand(executable,
|
| + arguments,
|
| + environmentOverrides,
|
| + needsDFERunner: needsDFERunner));
|
| + if (type == 'application/dart-snapshot') {
|
| + // Delete snapshots as we go to reduce the space required to run the test
|
| + // suite.
|
| + commands.add(commandBuilder.getDeleteCommand(script));
|
| + }
|
| + return commands;
|
| }
|
| }
|
|
|
| @@ -282,10 +290,13 @@ class DartPrecompiledRuntimeConfiguration extends DartVmRuntimeConfiguration {
|
| throw "dart_precompiled cannot run files of type '$type'.";
|
| }
|
|
|
| - return <Command>[
|
| - commandBuilder.getVmCommand(suite.dartPrecompiledBinaryFileName,
|
| - arguments, environmentOverrides)
|
| - ];
|
| + var commands = new List<Command>();
|
| + commands.add(commandBuilder.getVmCommand(suite.dartPrecompiledBinaryFileName,
|
| + arguments, environmentOverrides));
|
| + // Delete snapshots (dylibs or blobs) as we go to reduce the space required
|
| + // to run the test suite.
|
| + commands.add(commandBuilder.getDeleteCommand(script));
|
| + return commands;
|
| }
|
| }
|
|
|
|
|