| Index: tools/testing/dart/version.dart
|
| diff --git a/tools/testing/dart/version.dart b/tools/testing/dart/version.dart
|
| index ed6c8f665e160cd2a55248513edf56276dfab041..28eb0ea6cafdd5a83452db089221e04fe7a58d86 100644
|
| --- a/tools/testing/dart/version.dart
|
| +++ b/tools/testing/dart/version.dart
|
| @@ -112,7 +112,7 @@ class Version {
|
|
|
| String getExecutableSuffix() {
|
| if (Platform.operatingSystem == 'windows') {
|
| - return '.exe';
|
| + return '.bat';
|
| }
|
| return '';
|
| }
|
| @@ -143,8 +143,12 @@ class Version {
|
|
|
| String getUserName() {
|
| // TODO(ricow): Don't add this on the buildbot.
|
| - if (!Platform.environment.containsKey("USER")) return "";
|
| - return Platform.environment["USER"];
|
| + var key = "USER";
|
| + if (Platform.operatingSystem == 'windows') {
|
| + key = "USERNAME";
|
| + }
|
| + if (!Platform.environment.containsKey(key)) return "";
|
| + return Platform.environment[key];
|
| }
|
|
|
| RepositoryType get repositoryType {
|
|
|