Skip to content

Commit

Permalink
[pigeon] Only check generated files on master (flutter#3357)
Browse files Browse the repository at this point in the history
[pigeon] Only check generated files on master
  • Loading branch information
stuartmorgan committed Mar 3, 2023
1 parent da635f0 commit ca7205b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/pigeon/tool/run_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,14 @@ Future<void> main(List<String> args) async {
// configurations have different setups (e.g., different clang-format versions
// or no clang-format at all).
if (Platform.isLinux) {
await _validateGeneratedTestFiles();
// Only run on master, since Dart format can change between versions.
// TODO(stuartmorgan): Make a more generic way to run this check only on
// master; this currently won't work for anything but Cirrus.
if (Platform.environment['CHANNEL'] == 'stable') {
print('Skipping generated file validation on stable.');
} else {
await _validateGeneratedTestFiles();
}
}

final List<String> testsToRun;
Expand Down

0 comments on commit ca7205b

Please sign in to comment.