nokia / nokia/moler

missing api to ensure iperf server started

Open
#207 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
59
Forks
27
Avg merge
3d 13h
Merged PRs (30d)
5

Description

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)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the Python command lifecycle used by get_cmd("iperf") and the server's start(timeout=15) call. Trace how a running command exposes readiness, then add an await_started(timeout=1) entry point so the client can run without time.sleep; done means the example sequence works reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.