Migrate fuchsia_precache to shard tests. (#139202)
Adhoc tests are being deprecated and existing tests are being migrated to shard tests. Bug: https://github.com/flutter/flutter/issues/139153
This commit is contained in:
parent
4648f54430
commit
c8101b56a9
3
.ci.yaml
3
.ci.yaml
@ -681,8 +681,7 @@ targets:
|
|||||||
recipe: flutter/flutter
|
recipe: flutter/flutter
|
||||||
timeout: 60
|
timeout: 60
|
||||||
properties:
|
properties:
|
||||||
validation: fuchsia_precache
|
shard: fuchsia_precache
|
||||||
validation_name: Fuchsia precache
|
|
||||||
tags: >
|
tags: >
|
||||||
["framework", "hostonly", "shard", "linux"]
|
["framework", "hostonly", "shard", "linux"]
|
||||||
|
|
||||||
|
@ -265,6 +265,7 @@ Future<void> main(List<String> args) async {
|
|||||||
'realm_checker': _runRealmCheckerTest,
|
'realm_checker': _runRealmCheckerTest,
|
||||||
'customer_testing': _runCustomerTesting,
|
'customer_testing': _runCustomerTesting,
|
||||||
'analyze': _runAnalyze,
|
'analyze': _runAnalyze,
|
||||||
|
'fuchsia_precache': _runFuchsiaPrecache,
|
||||||
kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc.
|
kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc.
|
||||||
});
|
});
|
||||||
} catch (error, stackTrace) {
|
} catch (error, stackTrace) {
|
||||||
@ -1602,6 +1603,31 @@ Future<void> _runAnalyze() async {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Runs flutter_precache.
|
||||||
|
Future<void> _runFuchsiaPrecache() async {
|
||||||
|
printProgress('${green}Running flutter precache tests$reset');
|
||||||
|
await runCommand(
|
||||||
|
'flutter',
|
||||||
|
<String>[
|
||||||
|
'config',
|
||||||
|
'--enable-fuchsia',
|
||||||
|
],
|
||||||
|
workingDirectory: flutterRoot,
|
||||||
|
);
|
||||||
|
await runCommand(
|
||||||
|
'flutter',
|
||||||
|
<String>[
|
||||||
|
'precache',
|
||||||
|
'--flutter_runner',
|
||||||
|
'--fuchsia',
|
||||||
|
'--no-android',
|
||||||
|
'--no-ios',
|
||||||
|
'--force',
|
||||||
|
],
|
||||||
|
workingDirectory: flutterRoot,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/// Runs the skp_generator from the flutter/tests repo.
|
/// Runs the skp_generator from the flutter/tests repo.
|
||||||
///
|
///
|
||||||
/// See also the customer_tests shard.
|
/// See also the customer_tests shard.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user