-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix _pipepager()/_tempfilepage() to work with multi-call binaries #2944
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
Conversation
|
Makes sense, this looks good to me 👍 |
|
This looks like this will work but it's not obvious that calling |
|
@Rowlando13 How can we ensure the presence of Busybox for the test? |
|
The issue says that it is from resolving symlinks and that multiple utilities exhibit the behavior. I would imagine one of those utilities would installed on A GitHub runner, but I don't know that they are. I was going to leave it up to the person who submitted the issue. |
|
Would be simulating a multicall-binary in shell or as a python script good enough? That is what I planned for the test. Multicall-binaries read argv[0] and we can do that in shell or python.
But of course running the whole test-suite against busybox would prevent any kind busybox based bugs in the future. I‘ll look into that too.
|
|
I think in Python would be best. I would guess it is hard to guarantee everything that a shell gives you from inside pytest since it does a lot of funny things, but I don't know for sure. @davidism might know. I am pretty sure we don't want to have busybox as part of our test suite, since it would make things slower and I don't think any of the core contributors have experience with it. |
|
It's fine without a test. Please make the comment very specific about why we use |
d71952c to
ea425c9
Compare
Programs such as BusyBox, Toybox and Coreutils (also gzib, bzip etc) in multi-call mode derive their identity from the symlink. Resolving the symlink causes them to misbehave.
ea425c9 to
34723d1
Compare
I updated this PR, but I got curious on how difficult it is to add busybox tests. It seems quite straight forward so I added this proposal: #3101 |
|
Comment looks good. I'm not going to add the busybox tests, but it's a good reference, thanks for looking into it. |
Programs such as BusyBox, Toybox and Coreutils (also gzib, bzip etc) in multi-call mode derive their identity from the symlink. Resolving the symlink causes them to misbehave.
fixes #2943