3
# Copyright 2012 Canonical Ltd. This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
6
# A little python script to open a port on the buildslave so that we can
7
# test that it's actually deployed successfully.
10
import SimpleHTTPServer
18
<title>Here's some HTML</title>
20
<body><p>The slave is UP!</p></body>
24
with open('/tmp/index.html', 'w') as index_file:
25
index_file.write(simple_html)
27
subprocess.call(['open-port', '9000/TCP'])
28
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
29
httpd = SocketServer.TCPServer(("", PORT), Handler)
30
#httpd.serve_forever()