diff --git a/.gitignore b/.gitignore index 0af22121e6a..c9dae8e685c 100644 --- a/.gitignore +++ b/.gitignore @@ -53,6 +53,7 @@ GeneratedPluginRegistrant.* .gradle/ gradlew gradlew.bat +.cxx/ .project .classpath diff --git a/script/tool/lib/src/drive_examples_command.dart b/script/tool/lib/src/drive_examples_command.dart index 84689bcb5aa..3033d389faf 100644 --- a/script/tool/lib/src/drive_examples_command.dart +++ b/script/tool/lib/src/drive_examples_command.dart @@ -71,7 +71,13 @@ class DriveExamplesCommand extends PackageLoopingCommand { @override bool shouldIgnoreFile(String path) { - return isRepoLevelNonCodeImpactingFile(path) || isPackageSupportFile(path); + return isRepoLevelNonCodeImpactingFile(path) || + isPackageSupportFile(path) || + // This isn't part of isRepoLevelNonCodeImpactingFile since there could + // potentially be code-based commands that it could affect, but it + // should not affect integration tests, and they are the most expensive + // and flaky tests. + path == '.gitignore'; } @override diff --git a/script/tool/test/drive_examples_command_test.dart b/script/tool/test/drive_examples_command_test.dart index b556124f585..97c7e838d19 100644 --- a/script/tool/test/drive_examples_command_test.dart +++ b/script/tool/test/drive_examples_command_test.dart @@ -1763,6 +1763,7 @@ packages/package_a/$file FakeProcessInfo(MockProcess(stdout: ''' README.md CODEOWNERS +.gitignore packages/package_a/CHANGELOG.md ''')), ];