-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Force LANG=en_US.UTF-8 in test runner #82308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| final Map<String, String> newEnvironment = Map<String, String>.from(environment ?? <String, String>{}); | ||
| newEnvironment['BOT'] = isBot ? 'true' : 'false'; | ||
| newEnvironment['LANG'] = 'en_US.UTF-8'; | ||
| print('\nExecuting: $command in $finalWorkingDirectory with environment $newEnvironment'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Print the entire env, including BOT and LANG. This makes it testable, and is probably just a good idea for accuracy.
| void main() { | ||
| test('BOT variable is set on bots', () { | ||
| expect(Platform.environment['BOT'], 'true'); | ||
| }, skip: true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been skipped for awhile #43149.
CaseyHillers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
This pull request is not suitable for automatic merging in its current state.
|
Don't make the user set
LANGthemselves as instructed in https://github.com/flutter/flutter/wiki/Running-and-writing-tests#running-device-lab-tests-locally.Add test. Remove bot_test that's been skipped since #43149 since
BOTenv is tested in the new test.Validated
LANG=ru_RU.KOI8-R dart bin/run.dart -t hot_mode_dev_cycle_macos_target__benchmarkfailed before this PR and passed after.Fixes #54475