Exemplo n.º 1
0
def addSongsBottom(files):
    import shell
    shell.connect()
    shell.remoteExec("from Song import Song")
    for fn in files:
        fn = os.path.abspath(fn)
        assert os.path.exists(fn), "file %r does not exist" % fn
        shell.remoteExec("state.queue.queue.append(Song(%r))" % fn)
Exemplo n.º 2
0
def addSongsBottom(files):
	import shell
	shell.connect()
	shell.remoteExec("from Song import Song")
	for fn in files:
		fn = os.path.abspath(fn)
		assert os.path.exists(fn), "file %r does not exist" % fn
		shell.remoteExec("state.queue.queue.append(Song(%r))" % fn)
Exemplo n.º 3
0
def addSongsTop(files):
	import shell
	shell.connect()
	shell.remoteExec("from Song import Song")
	i = 0
	for fn in files:
		fn = os.path.abspath(fn)
		assert os.path.exists(fn), "file %r does not exist" % fn
		shell.remoteExec("state.queue.queue.insert(%i, Song(%r))" % (i, fn))
		i += 1
Exemplo n.º 4
0
def addSongsTop(files):
	import shell
	shell.connect()
	shell.remoteExec("from Song import Song")
	i = 0
	for fn in files:
		fn = os.path.abspath(fn)
		assert os.path.exists(fn), "file %r does not exist" % fn
		shell.remoteExec("state.queue.queue.insert(%i, Song(%r))" % (i, fn))
		i += 1
def main(*argv):
    """
    Used during normal testing. Afterwards it begins an SSH connection to the running machine.
    @param argv: Tuple of two lists. First list contains names of system calls to be tested and second one contains
     names of the testing suites to be run.
    """
    start_machine()
    print 'Starting SSH conection'
    if (shell.connect(argv) == 1):
        time.sleep(60)
        shell.connect(argv)