| Index: tools/testing/dart/legacy_path.dart
|
| diff --git a/tools/testing/dart/legacy_path.dart b/tools/testing/dart/legacy_path.dart
|
| index 73ad68c33192b0cbad67310f2cd6709288ae36be..57a4ac7013502b8432103983b986bf4ce003b276 100644
|
| --- a/tools/testing/dart/legacy_path.dart
|
| +++ b/tools/testing/dart/legacy_path.dart
|
| @@ -17,6 +17,10 @@ class Path {
|
|
|
| static String _clean(String source) {
|
| if (Platform.operatingSystem == 'windows') return _cleanWindows(source);
|
| + // Remove trailing slash from directories:
|
| + if (source.length > 1 && source.endsWith('/')) {
|
| + return source.substring(0, source.length - 1);
|
| + }
|
| return source;
|
| }
|
|
|
|
|