Skip to content
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

test: Fix shebang in TestUpdates.testKpatch #19027

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

martinpitt
Copy link
Member

@martinpitt martinpitt commented Jun 27, 2023

The initial empty line in the mocked /usr/local/bin/kpatch causes execve() to fail with ENOEXEC "Exec format error". The shell and the C bridge paper over this by falling back to interpreting the file as a shell script, but Python's subprocess gives up at this point.


Fixes TestUpdates.testKpatch with the Python bridge. That runs only on RHEL, so we didn't see it yet. Spotted in #19011

The initial empty line in the mocked /usr/local/bin/kpatch causes
execve() to fail with `ENOEXEC` "Exec format error". The shell and the C
bridge paper over this by falling back to interpreting the file as a
shell script, but Python's subprocess gives up at this point.
@martinpitt martinpitt added no-test For doc/workflow changes, or experiments which don't need a full CI run, pybridge Python Bridge labels Jun 27, 2023
@jelly jelly merged commit 00a7b0e into cockpit-project:main Jun 27, 2023
@martinpitt martinpitt deleted the fix-kpatch-test branch June 27, 2023 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-test For doc/workflow changes, or experiments which don't need a full CI run, pybridge Python Bridge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants