Repository navigation
Conversation
CCExtractor CI platform finished running the test files on linux. 171/237 tests matched the approved output:
66 tests do not match the approved output. That is the pass/fail verdict. Whether this branch caused it is a separate question, answered below.
Compared with the tip of master — test 9642, commit 97a0d24:
Compared with the commit this branch was cut from: the same run as the tip of master (test 9642), so the comparison above already covers it. No test changes behaviour relative to the tip of master: every failure above fails there too, byte for byte. The approved output for those tests is out of date, which is a baseline to review rather than a regression in this branch. |
CCExtractor CI platform finished running the test files on windows. 170/237 tests matched the approved output:
67 tests do not match the approved output. That is the pass/fail verdict. Whether this branch caused it is a separate question, answered below.
Compared with the tip of master — test 9643, commit 97a0d24:
Pass there, fail here:
Fail on both but produce different output — behaviour moved even though the verdict did not:
Compared with the commit this branch was cut from: the same run as the tip of master (test 9643), so the comparison above already covers it. This branch changes the behaviour of 4 test(s) relative to the tip of master. Those are the ones worth looking at; anything else in the list fails the same way on both sides. |
There was a problem hiding this comment.
Thanks for picking up #2367. I think this one can be closed as a duplicate.
#2368 already fixes the nine spellings from the issue, and #2370 fixes --delay -500 / --delay -12. I merged the two locally: clean merge, cargo test passes, and all nine spellings parse to the same args as their new names.
Your PR does the same nine spellings through explicit maps, which is a nice simple approach, but it doesn't cover the delay bug. So nothing from this PR would be left after #2368 and #2370 land.
Thanks again for the work, and feel free to review #2368 or #2370 if you want to look at the code.
last call will be by the maintainer , please take a look @cfsmp3
[FIX]
Fixes #2367
In raising this pull request, I confirm the following (please check boxes):
Reason for this PR:
Sanity check:
Repro instructions:
sample.scc(from #2367):Before (current master):
After (this branch, same commands):
All the spellings listed in #2367 now parse:
-608,-708,-90090,-UCLA,-CC2,-LF,-DF,-parsepat,-parsepmt. (-CC2parses and targets channel 2 as before; the sample only has channel 1, so it produces no captions.)What this changes:
normalize_legacy_option()insrc/rust/src/lib.rsnow maps the remaining legacy spellings to their canonical long options: the digit-leading flags (-608,-708,-90090) and the case variants (-UCLA,-CC2,-LF,-DF,-parsepat,-parsepmt). Explicit mappings are used, in the same style as the existing-1/-2/-12handling, so values such as--delay -500are never rewritten.Tests:
cargo test test_normalize_legacy_option-> 8 passed; full workspacecargo test-> 407 passed.