| Index: tools/testing/dart/test_runner.dart
|
| diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart
|
| index 1eeb00e8268906b3b80c9393f8934e3f6068534e..5a48c0d1eac2f89214ecb83a57020d4eeffbaa40 100644
|
| --- a/tools/testing/dart/test_runner.dart
|
| +++ b/tools/testing/dart/test_runner.dart
|
| @@ -551,7 +551,11 @@ class RunningProcess {
|
| * the actual test and its output is analyzed in [testComplete].
|
| */
|
| void stepExitHandler(int exitCode) {
|
| - process.close();
|
| + try {
|
| + process.close();
|
| + } catch (ProcessException e) {
|
| + // If the process is already closed, continue.
|
| + }
|
| int totalSteps = testCase.commands.length;
|
| String suffix =' (step $currentStep of $totalSteps)';
|
| if (currentStep == totalSteps) { // done with test command
|
|
|