Pass FLUTTER_TOOL_ARGS to snapshot command. (#29938)
This commit is contained in:
@@ -180,16 +180,24 @@ Future<void> _runToolTests() async {
|
||||
final bq.BigqueryApi bigqueryApi = await _getBigqueryApi();
|
||||
await _runSmokeTests();
|
||||
|
||||
// The flutter_tool will currently be snapshotted without asserts. We need
|
||||
// to force it to be regenerated with them enabled.
|
||||
if (!Platform.isWindows) {
|
||||
File(path.join(flutterRoot, 'bin', 'cache', 'flutter_tools.snapshot')).deleteSync();
|
||||
File(path.join(flutterRoot, 'bin', 'cache', 'flutter_tools.stamp')).deleteSync();
|
||||
}
|
||||
if (noUseBuildRunner) {
|
||||
await _pubRunTest(
|
||||
path.join(flutterRoot, 'packages', 'flutter_tools'),
|
||||
tableData: bigqueryApi?.tabledata,
|
||||
enableFlutterToolAsserts: !Platform.isWindows,
|
||||
);
|
||||
} else {
|
||||
await _buildRunnerTest(
|
||||
path.join(flutterRoot, 'packages', 'flutter_tools'),
|
||||
flutterRoot,
|
||||
tableData: bigqueryApi?.tabledata,
|
||||
enableFlutterToolAsserts: !Platform.isWindows,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user