8000 Execmd: prevent prompting for input by NicholasBHubbard · Pull Request #1955 · jordansissel/fpm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Execmd: prevent prompting for input #1955

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

Merged
merged 3 commits into from
Nov 14, 2022

Conversation

NicholasBHubbard
Copy link
Contributor

This PR fixes issue #1519 and #1522.

I based my fix off this commit from #1610 that was never merged.

Because Inline::CPP version 0.80 has an interactive Makefile.PL, the bug can be reproduced by running the following command on the main branch (this command will hang):

fpm --no-cpan-test --cpan-verbose --verbose --debug-workspace --workdir $HOME/tmp -t rpm -s cpan -v 0.80 Inline::CPP

Part of the issue in #1522 is that @wbraswell could not see the output from cpanminus, however this problem was fixed at some point. I added a test to util_spec.rb to ensure that the loggers pipe method is invoked during execution of safesystem. I would have liked to say expect(logger).to receive(:pipe).with(instance_of(IO) => :info, instance_of(IO) => :info), but rspec does not allow you to use the instance_of matcher on the keys of a hash argument. Due to this limitation I am not able to ensure that pipe is called with the correct arguments, but this test should still be good enough.

@wbraswell
Copy link
Contributor

@jordansissel
Please accept this PR, thanks!

@jordansissel jordansissel merged commit 3ba61bc into jordansissel:main Nov 14, 2022
@jordansissel
Copy link
Owner

Looks good. Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0