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

[P4Testgen] Move newline stripping from trace to TestFramework #4946

Merged
merged 6 commits into from
Oct 7, 2024

Conversation

vlstill
Copy link
Contributor

@vlstill vlstill commented Oct 7, 2024

... I think this makes more sense. There is nothing saying traces can't contain newlines, or that the newline can only occur from a limited set of expressions. But test frameworks (presumably both STF and PTF, due to their comment styles) have problems with it. So I move newline stripping to TestFramework. This should resolve the problem found in #4943.

@vlstill vlstill requested a review from fruffy October 7, 2024 10:43
@vlstill vlstill self-assigned this Oct 7, 2024
@vlstill vlstill added the p4tools Topics related to the P4Tools back end label Oct 7, 2024
Copy link
Collaborator

@fruffy fruffy left a comment

Choose a reason for hiding this comment

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

Iirc there are more instances of this stripping taking place.

@vlstill
Copy link
Contributor Author

vlstill commented Oct 7, 2024

Iirc there are more instances of this stripping taking place.

I think I've removed them all now.

Signed-off-by: Vladimír Štill <[email protected]>
@vlstill vlstill enabled auto-merge October 7, 2024 12:59
@vlstill vlstill added this pull request to the merge queue Oct 7, 2024
Merged via the queue into main with commit 76c2ad4 Oct 7, 2024
18 checks passed
@vlstill vlstill deleted the vstill/testgen-tf-newline branch October 7, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p4tools Topics related to the P4Tools back end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants