mirror of
https://github.com/flutter/flutter
synced 2024-10-01 05:54:08 +00:00
Turn off randomization for leak detection bots. (#145624)
This commit is contained in:
parent
3373961720
commit
e10049b2ff
6
.ci.yaml
6
.ci.yaml
|
@ -5237,7 +5237,8 @@ targets:
|
|||
["framework", "hostonly", "shard", "windows"]
|
||||
env_variables: >-
|
||||
{
|
||||
"LEAK_TRACKING": "true"
|
||||
"LEAK_TRACKING": "true",
|
||||
"TEST_RANDOMIZATION_OFF": "true"
|
||||
}
|
||||
runIf:
|
||||
- dev/**
|
||||
|
@ -5323,7 +5324,8 @@ targets:
|
|||
["framework", "hostonly", "shard", "windows"]
|
||||
env_variables: >-
|
||||
{
|
||||
"LEAK_TRACKING": "true"
|
||||
"LEAK_TRACKING": "true",
|
||||
"TEST_RANDOMIZATION_OFF": "true"
|
||||
}
|
||||
runIf:
|
||||
- dev/**
|
||||
|
|
|
@ -187,6 +187,8 @@ String get shuffleSeed {
|
|||
return _shuffleSeed!;
|
||||
}
|
||||
|
||||
final bool _isRandomizationOff = bool.tryParse(Platform.environment['TEST_RANDOMIZATION_OFF'] ?? '') ?? false;
|
||||
|
||||
/// When you call this, you can pass additional arguments to pass custom
|
||||
/// arguments to flutter test. For example, you might want to call this
|
||||
/// script with the parameter --local-engine=host_debug_unopt to
|
||||
|
@ -2471,7 +2473,7 @@ Future<void> _runFlutterTest(String workingDirectory, {
|
|||
|
||||
final List<String> args = <String>[
|
||||
'test',
|
||||
if (shuffleTests) '--test-randomize-ordering-seed=$shuffleSeed',
|
||||
if (shuffleTests && !_isRandomizationOff) '--test-randomize-ordering-seed=$shuffleSeed',
|
||||
if (fatalWarnings) '--fatal-warnings',
|
||||
...options,
|
||||
...tags,
|
||||
|
|
Loading…
Reference in a new issue