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

Unified Diff: devserver.py

Issue 5611004: Add support for --proxy_port. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/dev-util.git@master
Patch Set: Created 10 years 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 | « autoupdate_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devserver.py
diff --git a/devserver.py b/devserver.py
index d77bf4f8f2907420fc85949128166a16b8a57f9f..7d744c59f3aeb6d44201ccd6d1b777ee152e426d 100755
--- a/devserver.py
+++ b/devserver.py
@@ -135,6 +135,8 @@ if __name__ == '__main__':
help='Use update payload from specified directory.')
parser.add_option('--port', default=8080,
help='Port for the dev server to use.')
+ parser.add_option('--proxy_port', default=None,
+ help='Port to have the client connect to (testing support)')
parser.add_option('--src_image', default='',
help='Image on remote machine for generating delta update.')
parser.add_option('-t', action='store_true', dest='test_image')
@@ -170,7 +172,7 @@ if __name__ == '__main__':
if os.path.exists(cache_dir):
# Clear all but the last N cached updates
- cmd = ('cd %s; ls -1tr | head --lines=-%d | xargs rm -rf' %
+ cmd = ('cd %s; ls -tr | head --lines=-%d | xargs rm -rf' %
(cache_dir, CACHED_ENTRIES))
if os.system(cmd) != 0:
cherrypy.log('Failed to clean up old delta cache files with %s' % cmd,
@@ -191,6 +193,7 @@ if __name__ == '__main__':
forced_image=options.image,
forced_payload=options.payload,
port=options.port,
+ proxy_port=options.proxy_port,
src_image=options.src_image,
vm=options.vm,
board=options.board)
« no previous file with comments | « autoupdate_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698