Skip to content

missing api to ensure iperf server started #207

@greg-latuszek

Description

@greg-latuszek

let's assume you have 2 unix devices. You take iperf command

svr = unix1.get_cmd("iperf", cmd_params={'options': '-s -i 1')
run_client = unix2.get_cmd("iperf", cmd_params={'options': '-c {} -i 1 -t 10'.format(server_ip))

then you need to add sleep to let server start:

svr.start(timeout=15)
time.sleep(1)
client_report = run_client(timeout=15)

would be great to let it express as:

svr.start(timeout=15)
svr.await_started(timeout=1)
client_report = run_client(timeout=15)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions