OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python2.5 |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Setups a local Rietveld instance to test against a live server for | 6 """Setups a local Rietveld instance to test against a live server for |
7 integration tests. | 7 integration tests. |
8 | 8 |
9 It makes sure Google AppEngine SDK is found, download Rietveld and Django code | 9 It makes sure Google AppEngine SDK is found, download Rietveld and Django code |
10 if necessary and starts the server on a free inbound TCP port. | 10 if necessary and starts the server on a free inbound TCP port. |
11 """ | 11 """ |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 instance.start_server(verbose=options.verbose) | 137 instance.start_server(verbose=options.verbose) |
138 print 'Local rietveld instance started on port %d' % instance.port | 138 print 'Local rietveld instance started on port %d' % instance.port |
139 while True: | 139 while True: |
140 time.sleep(0.1) | 140 time.sleep(0.1) |
141 finally: | 141 finally: |
142 instance.stop_server() | 142 instance.stop_server() |
143 | 143 |
144 | 144 |
145 if __name__ == '__main__': | 145 if __name__ == '__main__': |
146 main() | 146 main() |
OLD | NEW |