Random cleanup across the tree (#14221)

This commit is contained in:
Ian Hickson
2018-01-25 09:46:48 -08:00
committed by GitHub
parent e0e291011e
commit 97b9579e55
7 changed files with 45 additions and 13 deletions

View File

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

View File

@@ -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');
}

View 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;

View File

@@ -0,0 +1,2 @@
.packages
pubspec.lock