tpf parsing drops trailing newline
When descriptors are read from a file the trailing newline should be preserved (which is the case for all types except tpf desc.).
The raw-byte dump of TorperfResult drops the newlines at the end.
Setting to high-prio b/c this blocks #21759 (moved).
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- iwakeh changed milestone to %metrics-lib 2.1.0
changed milestone to %metrics-lib 2.1.0
Like this?
Trac:
Status: new to needs_reviewThat looks fine! Thanks for the quick fix!
I'll apply this to #21759 (moved) and once that works, set this ticket to merge-ready.
What about a test for that and the other trailing newlines?
The fix works fine for #21759 (moved); test still welcome.
Like this?
I think it's okay to assume that all descriptors should end in newline. Would you want to add a parameterized test?
Please review the branch with tests.
The tests verify most of the
Descriptor
methods and stay implementation independent.The fix&tests could be released this week as preparation of CollecTor 1.3.0 (cf. #21759 (moved)).
Trac:
Status: accepted to needs_reviewMerged with a tiny one-line tweak to the test data. Closing. Thanks!
Trac:
Status: needs_review to closed
Resolution: N/A to fixed- Trac closed
closed