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

Side by Side Diff: build/util/lib/common/util.py

Issue 14882007: Android: support glob-style gtest filters with content browser tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use DIR_SOURCE_ROOT. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/util/lib/common/unittest_util.py ('k') | chrome/test/install_test/install_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Generic utilities for all python scripts.""" 5 """Generic utilities for all python scripts."""
6 6
7 import atexit 7 import atexit
8 import httplib 8 import httplib
9 import os 9 import os
10 import signal 10 import signal
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 conn.request('HEAD', parsed.path) 142 conn.request('HEAD', parsed.path)
143 response = conn.getresponse() 143 response = conn.getresponse()
144 except (socket.gaierror, socket.error): 144 except (socket.gaierror, socket.error):
145 return False 145 return False
146 finally: 146 finally:
147 conn.close() 147 conn.close()
148 # Follow both permanent (301) and temporary (302) redirects. 148 # Follow both permanent (301) and temporary (302) redirects.
149 if response.status == 302 or response.status == 301: 149 if response.status == 302 or response.status == 301:
150 return DoesUrlExist(response.getheader('location')) 150 return DoesUrlExist(response.getheader('location'))
151 return response.status == 200 151 return response.status == 200
OLDNEW
« no previous file with comments | « build/util/lib/common/unittest_util.py ('k') | chrome/test/install_test/install_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698