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

Unified Diff: native_client_sdk/src/tools/run.py

Issue 351963003: [NaCl SDK] Simplify httpd.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « native_client_sdk/src/tools/httpd.py ('k') | native_client_sdk/src/tools/tests/httpd_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/tools/run.py
diff --git a/native_client_sdk/src/tools/run.py b/native_client_sdk/src/tools/run.py
index 52f059038fb0d8886565321e5c61a8137188841b..cf8c208a4a0a79664288e4441d10ae6c587b5f5a 100755
--- a/native_client_sdk/src/tools/run.py
+++ b/native_client_sdk/src/tools/run.py
@@ -40,10 +40,6 @@ def main(args):
parser.add_option('-E',
help='Add environment variables when launching the executable.',
dest='environ', action='append', default=[])
- parser.add_option('--test-mode',
- help='Listen for posts to /ok or /fail and shut down the server with '
- ' errorcodes 0 and 1 respectively.',
- dest='test_mode', action='store_true')
parser.add_option('-p', '--port',
help='Port to run server on. Default is 5103, ephemeral is 0.',
type='int', default=5103)
@@ -52,8 +48,7 @@ def main(args):
parser.error('No executable given.')
# 0 means use an ephemeral port.
- server = httpd.LocalHTTPServer(options.serve_dir, options.port,
- options.test_mode)
+ server = httpd.LocalHTTPServer(options.serve_dir, options.port)
print 'Serving %s on %s...' % (options.serve_dir, server.GetURL(''))
env = copy.copy(os.environ)
« no previous file with comments | « native_client_sdk/src/tools/httpd.py ('k') | native_client_sdk/src/tools/tests/httpd_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698