diff --git a/packages/pigeon/tool/run_tests.dart b/packages/pigeon/tool/run_tests.dart index f7bc3530005b6..f00eb860b8657 100644 --- a/packages/pigeon/tool/run_tests.dart +++ b/packages/pigeon/tool/run_tests.dart @@ -164,7 +164,14 @@ Future main(List 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 testsToRun;