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:
godofredoc
2023-11-28 15:58:55 -08:00
committed by GitHub
parent a49ee534c6
commit 8b6277e638
3 changed files with 21 additions and 10 deletions

View File

@@ -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.