Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: third_party/mojo/src/mojo/public/tools/dart_list_mojoms.py

Issue 1179733005: Update mojo sdk to rev bdbb0c7e396fc4044a8b194058d7a7e529715286 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update CommandBufferImpl (Binding::OnConnectionError is no more) Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/mojo/src/mojo/public/tools/dart_list_mojoms.py
diff --git a/third_party/mojo/src/mojo/public/tools/dart_list_mojoms.py b/third_party/mojo/src/mojo/public/tools/dart_list_mojoms.py
index 1ef886cfb60ac411fa1f4b6dc5746e6e1916bd97..ce27afd50083611217538c682913e5c9dea89bb1 100755
--- a/third_party/mojo/src/mojo/public/tools/dart_list_mojoms.py
+++ b/third_party/mojo/src/mojo/public/tools/dart_list_mojoms.py
@@ -25,9 +25,11 @@ def main(args):
source_directory = args.source_directory
# Prefix to chop off output.
root_prefix = os.path.abspath(args.relative_directory_root)
- for dirname, _, filenames in os.walk(source_directory):
+ for dirname, dirnames, filenames in os.walk(source_directory):
# filter for .mojom files.
filenames = [f for f in filenames if f.endswith('.mojom')]
+ # Skip any directories that start with 'test'.
+ dirnames[:] = [d for d in dirnames if not d.startswith('test')]
for f in filenames:
path = os.path.abspath(os.path.join(dirname, f))
path = os.path.relpath(path, root_prefix)

Powered by Google App Engine
This is Rietveld 408576698