Unverified Commit b8bcfaa5 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

make sure flutter test asks for cache upgrades (#30216)

parent f2d671c1
......@@ -11,6 +11,7 @@ import '../base/platform.dart';
import '../cache.dart';
import '../codegen.dart';
import '../dart/pub.dart';
import '../globals.dart';
import '../project.dart';
import '../runner/flutter_command.dart';
import '../test/coverage_collector.dart';
......@@ -93,6 +94,7 @@ class TestCommand extends FastFlutterCommand {
@override
Future<FlutterCommandResult> runCommand() async {
await cache.updateAll(requiredArtifacts);
if (!fs.isFileSync('pubspec.yaml')) {
throwToolExit(
'Error: No pubspec.yaml file found in the current working directory.\n'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment