Skip to content

Report failing command in invoke_command()#380

Merged
evelikov merged 3 commits intodkms-project:masterfrom
evelikov:rework-exit-status
Dec 14, 2023
Merged

Report failing command in invoke_command()#380
evelikov merged 3 commits intodkms-project:masterfrom
evelikov:rework-exit-status

Conversation

@evelikov
Copy link
Collaborator

This builds on the ideas in #378, namely:

  • replaces the somewhat misleading/inconsistent "make ..." command during module building
  • passes the redirection file/log as argument to the function
  • prints/reports the failing command

All the other invoke_command instances produce nor human friendly
output, for the non-verbose case. Update the build instance to do the
same.

This clears extra confusion when either stage fails.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Currently we pass a composite build command that includes the
redirection of stdout/stderr. Pass the (log) file as separate argument
instead.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Report the command that had a bad exit status. This gives a better picture of
what is happening.

Co-authored-by: Mart Frauenlob <AllKind@fastest.cc>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
@evelikov
Copy link
Collaborator Author

@AllKind what do you think?

@AllKind
Copy link
Contributor

AllKind commented Dec 13, 2023

Cool!

@evelikov
Copy link
Collaborator Author

Thanks, merging.

@evelikov evelikov merged commit 580e6a5 into dkms-project:master Dec 14, 2023
@evelikov evelikov deleted the rework-exit-status branch December 14, 2023 10:04
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.

2 participants