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 legacy/trac#21759 (moved).
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- iwakeh changed milestone to %metrics-lib 2.1.0 in legacy/trac
changed milestone to %metrics-lib 2.1.0 in legacy/trac
- iwakeh added component::metrics/library in Legacy / Trac milestone::metrics-lib 2.1.0 in Legacy / Trac owner::iwakeh in Legacy / Trac priority::high in Legacy / Trac resolution::fixed in Legacy / Trac severity::normal in Legacy / Trac status::closed in Legacy / Trac type::defect in Legacy / Trac labels
Like this?
Trac:
Status: new to needs_reviewThat looks fine! Thanks for the quick fix!
I'll apply this to legacy/trac#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 legacy/trac#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. legacy/trac#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
- Trac moved from legacy/trac#22912 (moved)
moved from legacy/trac#22912 (moved)
- Trac removed 1 deleted label
removed 1 deleted label