Logo Search packages:      
Sourcecode: jockey version File versions  Download package

def ui::UITest::_fork_http_server (   self  )  [private]

fork a HTTP server on OSLib workdir which serves one request and
terminates.

Definition at line 517 of file ui.py.

00517                                :
        '''fork a HTTP server on OSLib workdir which serves one request and
        terminates.'''

        # fork test HTTP server
        pid = os.fork()
        if pid == 0:
            os.chdir(OSLib.inst.workdir)
            httpd = BaseHTTPServer.HTTPServer(('', 8427),
                SimpleHTTPServer.SimpleHTTPRequestHandler)
            httpd.handle_request()
            os._exit(0)
        else:
            self.http_pid = pid
            time.sleep(0.5) # TODO: bad race condition fix

    def _join_http_server(self, kill=False):


Generated by  Doxygen 1.6.0   Back to index