2
# A little python script to open a port on the buildslave so that we can
3
# test that it's actually deployed successfully.
6
import SimpleHTTPServer
14
<title>Here's some HTML</title>
16
<body><p>The slave is UP!</p></body>
20
with open('/tmp/index.html', 'w') as index_file:
21
index_file.write(simple_html)
23
subprocess.call(['open-port', '9000/TCP'])
24
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
25
httpd = SocketServer.TCPServer(("", PORT), Handler)