| Index: tools/testing/dart/status_file_parser.dart
|
| diff --git a/tools/testing/dart/status_file_parser.dart b/tools/testing/dart/status_file_parser.dart
|
| index 58e24831d55f2c2d489390d7f14cbcd02d3cc9b1..ec701111fe3cb5c942eee4a826e3ac1c58412c20 100644
|
| --- a/tools/testing/dart/status_file_parser.dart
|
| +++ b/tools/testing/dart/status_file_parser.dart
|
| @@ -59,7 +59,14 @@ void ReadConfigurationInto(path, sections, onDone) {
|
| if (!file.existsSync()) {
|
| throw new Exception('Cannot find test status file $path');
|
| }
|
| - InputStream file_stream = file.openInputStream();
|
| + // TODO(1797): When the checked in binary is updated to include the
|
| + // openInputStreamSync API remove this try/catch.
|
| + InputStream file_stream;
|
| + try {
|
| + file_stream = file.openInputStreamSync();
|
| + } catch (NoSuchMethodException e) {
|
| + file_stream = file.openInputStream();
|
| + }
|
| StringInputStream lines = new StringInputStream(file_stream);
|
|
|
| Section current = new Section.always();
|
|
|