forked from firka/flutter
Move commands into their own shard (#39140)
This commit is contained in:
@@ -39,7 +39,18 @@ Future<void> main(List<String> arguments) async {
|
||||
<Runtime>[Runtime.vm],
|
||||
() => vmPlatform,
|
||||
);
|
||||
await test.main(<String>['-x', 'no_coverage', '--no-color', '-r', 'compact', '-j', '1', ...arguments]);
|
||||
if (arguments.isEmpty) {
|
||||
arguments = <String>[
|
||||
path.join('test', 'general.shard'),
|
||||
path.join('test', 'commands.shard', 'hermetic'),
|
||||
];
|
||||
}
|
||||
await test.main(<String>[
|
||||
'--no-color',
|
||||
'-r', 'compact',
|
||||
'-j', '1',
|
||||
...arguments
|
||||
]);
|
||||
exit(exitCode);
|
||||
});
|
||||
}
|
||||
@@ -141,8 +152,7 @@ class VMPlatform extends PlatformPlugin {
|
||||
final String result = await coverageCollector.finalizeCoverage(
|
||||
formatter: formatter,
|
||||
);
|
||||
final String prefix = Platform.environment['SUBSHARD'] ?? '';
|
||||
final String outputLcovPath = path.join('coverage', '$prefix.lcov.info');
|
||||
final String outputLcovPath = path.join('coverage', 'lcov.info');
|
||||
File(outputLcovPath)
|
||||
..createSync(recursive: true)
|
||||
..writeAsStringSync(result);
|
||||
|
||||
Reference in New Issue
Block a user