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

[th/validate-args] testConfig: improve validation of {ConfServer,ConfClient}.args #172

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

thom311
Copy link
Collaborator

@thom311 thom311 commented Dec 3, 2024

No description provided.

@thom311 thom311 self-assigned this Dec 5, 2024
@thom311 thom311 force-pushed the th/validate-args branch 2 times, most recently from c45422d to 55fa7a2 Compare December 10, 2024 10:27
@@ -145,6 +151,14 @@ def _construct_args(pctx2: StructParseParseContext) -> tuple[str, ...]:

return typing.cast("T2", result)

def _validate(self, test_type: TestType) -> None:
if self.args is not None:
if test_type not in (TestType.SIMPLE,):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we only support SIMPLE test type?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this parameter was added especially for "simple", to tweak what the script does. The script is mainly intended for manually hacking it for some ad-hoc testing, so passing additional parameters to it may make sense.

passing args to iperf or netperf tools probably would make sense. But it's not implemented yet, hence it's currently rejected.

@wizhaoredhat
Copy link
Owner

LGTM

@wizhaoredhat wizhaoredhat merged commit d07f3bf into wizhaoredhat:main Dec 13, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants