Exemplo n.º 1
0
def test_start(module_setup, device, app, domain, device_host):
    device.run_ssh('date', retries=100, throw=True)
    device.scp_to_device(DIR, '/', throw=True)
    device.run_ssh('mkdir /log', throw=True)
    device.run_ssh('snap remove platform', throw=True)
    add_host_alias_by_ip(app, domain, device_host)
    add_host_alias_by_ip("app", domain, device_host)
Exemplo n.º 2
0
def test_start(module_setup, device_host, log_dir, app, domain):
    shutil.rmtree(log_dir, ignore_errors=True)
    run_ssh(device_host, 'date', password=LOGS_SSH_PASSWORD, retries=100)
    run_scp('-r {0} root@{1}:/'.format(DIR, device_host))
    run_ssh(device_host, 'mkdir /log', password=LOGS_SSH_PASSWORD)
    run_ssh(device_host, 'snap remove platform', password=LOGS_SSH_PASSWORD)
    add_host_alias_by_ip(app, domain, device_host)
    add_host_alias_by_ip("app", domain, device_host)

    os.mkdir(log_dir)
Exemplo n.º 3
0
def test_start(module_setup, app, domain, device_host):
    add_host_alias_by_ip(app, domain, device_host)
Exemplo n.º 4
0
def test_start(module_setup, device, device_host, app, domain):
    add_host_alias_by_ip(app, domain, device_host)
    device.run_ssh('date', retries=100)
    device.run_ssh('mkdir {0}'.format(TMP_DIR))
Exemplo n.º 5
0
def test_start(module_setup, device, device_host, app, domain, log_dir):
    shutil.rmtree(log_dir, ignore_errors=True)
    os.mkdir(log_dir)
    add_host_alias_by_ip(app, domain, device_host)
    print(check_output('date', shell=True))
    device.run_ssh('date', retries=20)