Check the realm file in its own shard. (#137160)
This way, it is easier to differentiate between a real failure in the tools tests vs. just the realm check that blocks the merge.
This commit is contained in:
@@ -262,6 +262,7 @@ Future<void> main(List<String> args) async {
|
||||
'web_long_running_tests': _runWebLongRunningTests,
|
||||
'flutter_plugins': _runFlutterPackagesTests,
|
||||
'skp_generator': _runSkpGeneratorTests,
|
||||
'realm_checker': _runRealmCheckerTest,
|
||||
kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc.
|
||||
});
|
||||
} catch (error, stackTrace) {
|
||||
@@ -1568,6 +1569,13 @@ Future<void> _runSkpGeneratorTests() async {
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _runRealmCheckerTest() async {
|
||||
final String engineRealm = File(engineRealmFile).readAsStringSync().trim();
|
||||
if (engineRealm.isNotEmpty) {
|
||||
foundError(<String>['The checked-in engine.realm file must be empty.']);
|
||||
}
|
||||
}
|
||||
|
||||
// The `chromedriver` process created by this test.
|
||||
//
|
||||
// If an existing chromedriver is already available on port 4444, the existing
|
||||
|
||||
Reference in New Issue
Block a user