Exemplo n.º 1
0
def wget(initiator, path, fname, loops=10, sleeptime=1):
    initiator.run_and_check('rm %s' % fname, expectation=False)
    initiator.run('wget -q %s/%s' % (path, fname), wait=False)
    for i in range(loops):
        if exists(initiator, fname):
            return ReturnCode(True)
        time.sleep(sleeptime)
    return ReturnCode(False, 'wget: %s/%s not available' % (path, fname))
Exemplo n.º 2
0
def wget(initiator, path, fname, loops=10, sleeptime=1):
    initiator.run_and_check('rm %s' % fname, expectation=False)
    initiator.run('wget -q %s/%s' % (path, fname), wait=False)
    for i in range(loops):
        if exists(initiator, fname):
            return ReturnCode(True)
        time.sleep(sleeptime)
    return ReturnCode(False, 'wget: %s/%s not available' % (path, fname))
Exemplo n.º 3
0
def wait_file_exists(initiator, fname):
    return exists(initiator, fname)
Exemplo n.º 4
0
def wait_file_exists(initiator, fname):
    return exists(initiator, fname)