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

Unified Diff: tools/sharding_supervisor/sharding_supervisor.py

Issue 7312026: Moved sharding_supervisor (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 5 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 | « chrome/tools/sharding_supervisor/sharding_supervisor.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/sharding_supervisor/sharding_supervisor.py
diff --git a/chrome/tools/sharding_supervisor/sharding_supervisor.py b/tools/sharding_supervisor/sharding_supervisor.py
similarity index 98%
rename from chrome/tools/sharding_supervisor/sharding_supervisor.py
rename to tools/sharding_supervisor/sharding_supervisor.py
index c8ce01f13b9bd12ce1708ffe63cf0fb1a77cac34..da870d466416f8c88baa36716119ee98fb40180d 100755
--- a/chrome/tools/sharding_supervisor/sharding_supervisor.py
+++ b/tools/sharding_supervisor/sharding_supervisor.py
@@ -11,8 +11,6 @@ the test in a separate process and report on the results. When all the shards
have been completed, the supervisor reprints any lines indicating a test
failure for convenience. If only one shard is to be run, a single subprocess
is started for that shard and the output is identical to gtest's output.
-
-Usage: python sharding_supervisor.py [options] path/to/test [gtest_args]
"""
@@ -25,6 +23,7 @@ import sys
import threading
+USAGE = "Usage: python %prog [options] path/to/test [gtest_args]"
DEFAULT_NUM_CORES = 4
DEFAULT_SHARDS_PER_CORE = 5 # num_shards = cores * SHARDS_PER_CORE
DEFAULT_RUNS_PER_CORE = 1 # num_workers = cores * RUNS_PER_CORE
@@ -208,7 +207,7 @@ class ShardingSupervisor(object):
def main():
- parser = optparse.OptionParser()
+ parser = optparse.OptionParser(usage=USAGE)
parser.add_option(
"-n", "--shards_per_core", type="int", default=DEFAULT_SHARDS_PER_CORE,
help="number of shards to generate per CPU")
« no previous file with comments | « chrome/tools/sharding_supervisor/sharding_supervisor.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698