Skip to content

Commit ca7205b

Browse files
[pigeon] Only check generated files on master (#3357)
[pigeon] Only check generated files on master
1 parent da635f0 commit ca7205b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/pigeon/tool/run_tests.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,14 @@ Future<void> main(List<String> args) async {
164164
// configurations have different setups (e.g., different clang-format versions
165165
// or no clang-format at all).
166166
if (Platform.isLinux) {
167-
await _validateGeneratedTestFiles();
167+
// Only run on master, since Dart format can change between versions.
168+
// TODO(stuartmorgan): Make a more generic way to run this check only on
169+
// master; this currently won't work for anything but Cirrus.
170+
if (Platform.environment['CHANNEL'] == 'stable') {
171+
print('Skipping generated file validation on stable.');
172+
} else {
173+
await _validateGeneratedTestFiles();
174+
}
168175
}
169176

170177
final List<String> testsToRun;

0 commit comments

Comments
 (0)