Random cleanup across the tree (#14221)
This commit is contained in:
@@ -58,9 +58,9 @@ class _StdoutHandler {
|
||||
Future<String> compile(
|
||||
{String sdkRoot,
|
||||
String mainPath,
|
||||
bool linkPlatformKernelIn : false,
|
||||
bool aot : false,
|
||||
bool strongMode : false,
|
||||
bool linkPlatformKernelIn: false,
|
||||
bool aot: false,
|
||||
bool strongMode: false,
|
||||
List<String> extraFrontEndOptions,
|
||||
String incrementalCompilerByteStorePath,
|
||||
String packagesPath}) async {
|
||||
|
||||
@@ -222,9 +222,11 @@ class _FlutterPlatform extends PlatformPlugin {
|
||||
|
||||
// copy 'vm_platform_strong.dill' into 'platform.dill'
|
||||
final File vmPlatformStrongDill = fs.file(
|
||||
artifacts.getArtifactPath(Artifact.platformKernelStrongDill));
|
||||
artifacts.getArtifactPath(Artifact.platformKernelStrongDill),
|
||||
);
|
||||
final File platformDill = vmPlatformStrongDill.copySync(
|
||||
tempBundleDirectory.childFile('platform.dill').path);
|
||||
tempBundleDirectory.childFile('platform.dill').path,
|
||||
);
|
||||
if (!platformDill.existsSync()) {
|
||||
printError('unexpected error copying platform kernel file');
|
||||
}
|
||||
|
||||
@@ -43,10 +43,10 @@ Future<int> runTests(
|
||||
if (enableObservatory) {
|
||||
// (In particular, for collecting code coverage.)
|
||||
|
||||
// Turn on concurrency, but just barely. If we just go with full concurrency, then
|
||||
// individual tests timeout. If we turn it off (=1), then the overall tests timeout.
|
||||
// This is a lit fuse... Eventually it won't matter what number we put here.
|
||||
// TODO(gspencer): Fix this: https://github.com/flutter/flutter/issues/10694
|
||||
// Turn on concurrency, but just barely. This is a trade-off between running
|
||||
// too many tests such that they all time out, and too few tests such that
|
||||
// the tests overall take too much time. The current number is empirically
|
||||
// based on what our infrastructure can handle, which isn't ideal...
|
||||
testArgs.add('--concurrency=2');
|
||||
}
|
||||
|
||||
@@ -96,7 +96,6 @@ Future<int> runTests(
|
||||
await test.main(testArgs);
|
||||
|
||||
// test.main() sets dart:io's exitCode global.
|
||||
// TODO(skybrian): restore previous value?
|
||||
printTrace('test package returned with exit code $exitCode');
|
||||
|
||||
return exitCode;
|
||||
|
||||
2
packages/flutter_tools/test/data/asset_test/main/.gitignore
vendored
Normal file
2
packages/flutter_tools/test/data/asset_test/main/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.packages
|
||||
pubspec.lock
|
||||
Reference in New Issue
Block a user