-
Notifications
You must be signed in to change notification settings - Fork 246
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
Refactor the binary tests #2344
Refactor the binary tests #2344
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your pull request, I already commented few functional issues, here the annoying non-functional nits :)
Faktor
->Refactor
,Factor in
/Factor out
- Do not put the issue number in the PR title, it does not autolink, put it in the body or, even better, put in the commit message body as
Fixes #2337
.
Thank you a lot :)
Thanks for the review 👍 functionalI added my reasoning to your comments. non-functionalI normally add the But, since I have the |
93568d2
to
c977c35
Compare
It is fine. |
tests/binary.rs
Outdated
.arg(&passfile) | ||
get_common_cmd(outfile) | ||
.args(&["--reservoir-frame-delay", "14"]) | ||
.args(&[OsStr::new("--first-pass"), passfile]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is more readable to use arg().arg()
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true.
e984ddb
to
5e0d3ff
Compare
@lu-zero I dropped the two commits. Should be fine now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, please rebase the set.
5e0d3ff
to
a52ed12
Compare
This PR applies various refactoring to
tests/binary.rs
:Command.args(&[arg1, arg2])
fn get_tempfile_path(extension: &str)
to returnOsString
Command
in intermediate variableFixes #2337