Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing api to ensure iperf server started #207

Open
greg-latuszek opened this issue Sep 27, 2019 · 0 comments
Open

missing api to ensure iperf server started #207

greg-latuszek opened this issue Sep 27, 2019 · 0 comments

Comments

@greg-latuszek
Copy link
Collaborator

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant