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

Unified Diff: tools/dev/gm.py

Issue 2827263004: Fix HashTable growth strategy to be 2x instead of 4x (Closed)
Patch Set: update CSA; fix test Created 3 years, 8 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
« no previous file with comments | « test/unittests/object-unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dev/gm.py
diff --git a/tools/dev/gm.py b/tools/dev/gm.py
index 758a8ce34094b665e0fcd9cf16bd5ff775d1d600..ddf71fbe8f607e0fa9c8b167ded729c83a745858 100755
--- a/tools/dev/gm.py
+++ b/tools/dev/gm.py
@@ -240,7 +240,11 @@ class ArgumentParser(object):
targets = []
actions = []
tests = []
- words = argstring.split('.')
+ # Specifying a single unit test looks like "unittests/Foo.Bar".
+ if argstring.startswith("unittests/"):
+ words = [argstring]
+ else:
+ words = argstring.split('.')
if len(words) == 1:
word = words[0]
if word in ACTIONS:
« no previous file with comments | « test/unittests/object-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698