diff --git a/dev/bots/suite_runners/run_analyze_tests.dart b/dev/bots/suite_runners/run_analyze_tests.dart new file mode 100644 index 0000000000..0a6a226d88 --- /dev/null +++ b/dev/bots/suite_runners/run_analyze_tests.dart @@ -0,0 +1,20 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:path/path.dart' as path; + +import '../run_command.dart'; +import '../utils.dart'; + +Future analyzeRunner(String flutterRoot) async { + printProgress('${green}Running analysis testing$reset'); + await runCommand( + 'dart', + [ + '--enable-asserts', + path.join(flutterRoot, 'dev', 'bots', 'analyze.dart'), + ], + workingDirectory: flutterRoot, + ); +} diff --git a/dev/bots/test.dart b/dev/bots/test.dart index 772e8e0b64..0784317aa7 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -65,6 +65,7 @@ import 'package:process/process.dart'; import 'run_command.dart'; import 'suite_runners/run_add_to_app_life_cycle_tests.dart'; +import 'suite_runners/run_analyze_tests.dart'; import 'suite_runners/run_flutter_packages_tests.dart'; import 'suite_runners/run_realm_checker_tests.dart'; import 'suite_runners/run_skp_generator_tests.dart'; @@ -252,7 +253,7 @@ Future main(List args) async { 'skp_generator': skpGeneratorTestsRunner, 'realm_checker': () => realmCheckerTestRunner(flutterRoot), 'customer_testing': _runCustomerTesting, - 'analyze': _runAnalyze, + 'analyze': () => analyzeRunner(flutterRoot), 'fuchsia_precache': _runFuchsiaPrecache, 'docs': _runDocs, 'verify_binaries_codesigned': _runVerifyCodesigned, @@ -1238,19 +1239,6 @@ Future _runCustomerTesting() async { ); } -// Runs analysis tests. -Future _runAnalyze() async { - printProgress('${green}Running analysis testing$reset'); - await runCommand( - 'dart', - [ - '--enable-asserts', - path.join(flutterRoot, 'dev', 'bots', 'analyze.dart'), - ], - workingDirectory: flutterRoot, - ); -} - // Runs flutter_precache. Future _runFuchsiaPrecache() async { printProgress('${green}Running flutter precache tests$reset');