Move analysis test to shard tests. (#139161)
This is part of the effort to deprecated adhoc tests. Bug: https://github.com/flutter/flutter/issues/139153
This commit is contained in:
@@ -264,6 +264,7 @@ Future<void> main(List<String> args) async {
|
||||
'skp_generator': _runSkpGeneratorTests,
|
||||
'realm_checker': _runRealmCheckerTest,
|
||||
'customer_testing': _runCustomerTesting,
|
||||
'analyze': _runAnalyze,
|
||||
kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc.
|
||||
});
|
||||
} catch (error, stackTrace) {
|
||||
@@ -1588,6 +1589,19 @@ Future<void> _runCustomerTesting() async {
|
||||
);
|
||||
}
|
||||
|
||||
// Runs analysis tests.
|
||||
Future<void> _runAnalyze() async {
|
||||
printProgress('${green}Running analysis testing$reset');
|
||||
await runCommand(
|
||||
'dart',
|
||||
<String>[
|
||||
'--enable-asserts',
|
||||
path.join(flutterRoot, 'dev', 'bots', 'analyze.dart'),
|
||||
],
|
||||
workingDirectory: flutterRoot,
|
||||
);
|
||||
}
|
||||
|
||||
/// Runs the skp_generator from the flutter/tests repo.
|
||||
///
|
||||
/// See also the customer_tests shard.
|
||||
|
||||
Reference in New Issue
Block a user